From: Klas Lindfors Date: Tue, 11 Dec 2012 15:03:59 +0000 (+0100) Subject: misstake, that should be \0, not \n X-Git-Tag: v1.10.0~1 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fdd92a6f2a650d9f52c183ff005702fe4851f8fb;p=yubikey-personalization misstake, that should be \0, not \n --- diff --git a/ykpers-args.c b/ykpers-args.c index 4c55db7..ea4c6ec 100644 --- a/ykpers-args.c +++ b/ykpers-args.c @@ -422,7 +422,7 @@ int args_to_config(int argc, char **argv, YKP_CONFIG *cfg, YK_KEY *yk, *exit_code = 1; return 0; } - if(optarg[1] != '\n') { + if(optarg[1] != '\0') { *usb_mode = (optarg[0] - '0') << 4; optarg++; }