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 4dfe2dc commit b5dbdd8Copy full SHA for b5dbdd8
external/hash/str_set.c
@@ -47,7 +47,7 @@ DEFINE_HASH_TABLE(str_set)
47
*/
48
static inline int ht_match(const void *key, size_t len, str_set_item_t item)
49
{
50
- return strncmp(key, item, len) == 0;
+ return strncmp(key, item, len) == 0 && item[len] == '\0';
51
}
52
53
static inline const void *ht_key(str_set_item_t item)
0 commit comments