From a3b0576611b9eba5fa0391d8b6376ade3c706995 Mon Sep 17 00:00:00 2001 From: Shivshankar-Reddy Date: Wed, 22 May 2024 14:22:50 +0000 Subject: [PATCH] correct compare api Signed-off-by: Shivshankar-Reddy --- src/unit/test_zipmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unit/test_zipmap.c b/src/unit/test_zipmap.c index 020612bbfb..93ad00e356 100644 --- a/src/unit/test_zipmap.c +++ b/src/unit/test_zipmap.c @@ -93,7 +93,7 @@ int test_zipmapPerformDirectLookup(int argc, char *argv[], int flags) { if (zipmapGet(zm,(unsigned char*) "foo",3,&value,&vlen)) { TEST_ASSERT(5 == vlen); - TEST_ASSERT(!strcmp("12345", (const char*)value,vlen)); + TEST_ASSERT(!strncmp("12345", (const char*)value,vlen)); } zfree(zm); return 0;