We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e61b7ba commit 89baa58Copy full SHA for 89baa58
1 file changed
src/value/value.c
@@ -48,7 +48,7 @@ static inline mempool_t *getPool() {
48
49
static inline int cmp_strings(const char *s1, const char *s2, size_t l1, size_t l2) {
50
// Use memcmp instead of strncmp to correctly handle binary data with embedded NULLs
51
- int cmp = strncmp(s1, s2, MIN(l1, l2));
+ int cmp = memcmp(s1, s2, MIN(l1, l2));
52
if (l1 == l2) {
53
// if the strings are the same length, just return the result of memcmp
54
return cmp;
0 commit comments