From: Klas Lindfors Date: Thu, 20 Sep 2012 11:42:03 +0000 (+0200) Subject: don't use strnlen X-Git-Tag: v1.8.0~15 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c5495c0810a4a0123a0880698fb5ea5c8a06a78;p=yubikey-personalization don't use strnlen --- diff --git a/ykpers-args.c b/ykpers-args.c index 7abbbd4..123d662 100644 --- a/ykpers-args.c +++ b/ykpers-args.c @@ -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':