Skip to content

Commit a3b0576

Browse files
correct compare api
Signed-off-by: Shivshankar-Reddy <[email protected]>
1 parent 6eb1006 commit a3b0576

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/unit/test_zipmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ int test_zipmapPerformDirectLookup(int argc, char *argv[], int flags) {
9393

9494
if (zipmapGet(zm,(unsigned char*) "foo",3,&value,&vlen)) {
9595
TEST_ASSERT(5 == vlen);
96-
TEST_ASSERT(!strcmp("12345", (const char*)value,vlen));
96+
TEST_ASSERT(!strncmp("12345", (const char*)value,vlen));
9797
}
9898
zfree(zm);
9999
return 0;

0 commit comments

Comments
 (0)