aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libucl
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-18 11:42:50 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-18 11:42:50 +0000
commitad53cbd75fcf6699eafd21a431c07bd338e56313 (patch)
tree68e80597d42f7291eca6436cbfe7bd834fac2605 /contrib/libucl
parentf7fb4d9e3ef80309926b51977da04572960054df (diff)
downloadrspamd-ad53cbd75fcf6699eafd21a431c07bd338e56313.tar.gz
rspamd-ad53cbd75fcf6699eafd21a431c07bd338e56313.zip
Backport fixes from libucl
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;