]> err.no Git - yubikey-personalization/commitdiff
don't use strnlen
authorKlas Lindfors <klas@yubico.com>
Thu, 20 Sep 2012 11:42:03 +0000 (13:42 +0200)
committerKlas Lindfors <klas@yubico.com>
Thu, 20 Sep 2012 11:42:03 +0000 (13:42 +0200)
ykpers-args.c

index 7abbbd420328ed6a92002bfd8e6f43545c4f7583..123d662571588f3c000b83b195748f717542956f 100644 (file)
@@ -440,7 +440,7 @@ int args_to_config(int argc, char **argv, YKP_CONFIG *cfg, YK_KEY *yk,
                        if (!ykp_configure_command(cfg, SLOT_NDEF)) {
                                return 0;
                        }
-                       memcpy(ndef, optarg, strnlen(optarg, 128));
+                       memcpy(ndef, optarg, strlen(optarg));
                        ndef_seen = true;
                        break;
                case 'o':