From 20cdb65627df14ba0f2b6b35fc7585b91f0abfa2 Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Mon, 3 Mar 2014 11:12:07 +0100 Subject: [PATCH] use memcmp instead of strcmp --- tests/test_args_to_config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5