summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorAndrew Chambers <andrewchamberss@gmail.com>2016-03-08 21:40:48 +1300
committerAndrew Chambers <andrewchamberss@gmail.com>2016-03-08 21:40:54 +1300
commit0fd30aacbeb4f4f149e30b538e68c30f0f65c110 (patch)
treec6470fc9c06c56dc36a77457f22a81abe3aebaa6 /util
parent7232ece6a83f28173aff8be16b201151ad7d3751 (diff)
downloadmc-0fd30aacbeb4f4f149e30b538e68c30f0f65c110.tar.gz
compare the correct memory in strliteq
Diffstat (limited to 'util')
-rw-r--r--util/htab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/htab.c b/util/htab.c
index 7c616b7..c5aa6a3 100644
--- a/util/htab.c
+++ b/util/htab.c
@@ -265,7 +265,7 @@ int strliteq(void *_a, void *_b)
return 0;
if (a->len != b->len)
return 0;
- return !memcmp(a, b, a->len);
+ return !memcmp(a->buf, b->buf, a->len);
}
ulong ptrhash(void *key) { return inthash((uintptr_t)key); }