From: Klas Lindfors Date: Mon, 3 Mar 2014 10:12:07 +0000 (+0100) Subject: use memcmp instead of strcmp X-Git-Tag: v1.15.1~14 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20cdb65627df14ba0f2b6b35fc7585b91f0abfa2;p=yubikey-personalization use memcmp instead of strcmp --- diff --git a/tests/test_args_to_config.c b/tests/test_args_to_config.c index 65bbf4c..00392df 100644 --- a/tests/test_args_to_config.c +++ b/tests/test_args_to_config.c @@ -345,7 +345,7 @@ static void _test_non_config_args(void) assert(rc == 1); i = strcmp(infname, "in"); assert(i == 0); i = strcmp(outfname, "out"); assert(i == 0); - i = strcmp(access_code, "123456"); assert(i == 0); + i = memcmp(access_code, "123456", 6); assert(i == 0); assert(autocommit == true); assert(verbose == true);