]> err.no Git - yubikey-personalization/commitdiff
misstake, that should be \0, not \n
authorKlas Lindfors <klas@yubico.com>
Tue, 11 Dec 2012 15:03:59 +0000 (16:03 +0100)
committerKlas Lindfors <klas@yubico.com>
Tue, 11 Dec 2012 15:03:59 +0000 (16:03 +0100)
ykpers-args.c

index 4c55db716fd2dc969096f7cc53c71d1a66599127..ea4c6ec17516198d7f36eaa9bd87be586a07b737 100644 (file)
@@ -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++;
                        }