diff --git a/external/hash/str_set.c b/external/hash/str_set.c index 87a37665..664737ec 100644 --- a/external/hash/str_set.c +++ b/external/hash/str_set.c @@ -47,7 +47,7 @@ DEFINE_HASH_TABLE(str_set) */ static inline int ht_match(const void *key, size_t len, str_set_item_t item) { - return strncmp(key, item, len) == 0; + return strncmp(key, item, len) == 0 && item[len] == '\0'; } static inline const void *ht_key(str_set_item_t item)