We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6eb1006 commit a3b0576Copy full SHA for a3b0576
src/unit/test_zipmap.c
@@ -93,7 +93,7 @@ int test_zipmapPerformDirectLookup(int argc, char *argv[], int flags) {
93
94
if (zipmapGet(zm,(unsigned char*) "foo",3,&value,&vlen)) {
95
TEST_ASSERT(5 == vlen);
96
- TEST_ASSERT(!strcmp("12345", (const char*)value,vlen));
+ TEST_ASSERT(!strncmp("12345", (const char*)value,vlen));
97
}
98
zfree(zm);
99
return 0;
0 commit comments