aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libucl
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libucl')
-rw-r--r--contrib/libucl/ucl_hash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/libucl/ucl_hash.c b/contrib/libucl/ucl_hash.c
index 174ebb685..c54fba7c9 100644
--- a/contrib/libucl/ucl_hash.c
+++ b/contrib/libucl/ucl_hash.c
@@ -117,7 +117,7 @@ static inline int
ucl_hash_equal (const ucl_object_t *k1, const ucl_object_t *k2)
{
if (k1->keylen == k2->keylen) {
- return strncmp (k1->key, k2->key, k1->keylen) == 0;
+ return memcmp (k1->key, k2->key, k1->keylen) == 0;
}
return 0;
@@ -216,7 +216,7 @@ static inline int
ucl_hash_caseless_equal (const ucl_object_t *k1, const ucl_object_t *k2)
{
if (k1->keylen == k2->keylen) {
- return strncasecmp (k1->key, k2->key, k1->keylen) == 0;
+ return memcmp (k1->key, k2->key, k1->keylen) == 0;
}
return 0;