From 32dd7838e54e6c62d6972ea6b49b3e73ac926c2d Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 7 Oct 2015 13:10:37 +0100 Subject: Use rspamd_lc_cmp for fixed strings comparisions. --- src/libutil/str_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libutil/str_util.c b/src/libutil/str_util.c index a2093e484..ffed9893d 100644 --- a/src/libutil/str_util.c +++ b/src/libutil/str_util.c @@ -268,7 +268,7 @@ rspamd_ftok_icase_equal (gconstpointer v, gconstpointer v2) const rspamd_ftok_t *f1 = v, *f2 = v2; if (f1->len == f2->len && - g_ascii_strncasecmp (f1->begin, f2->begin, f1->len) == 0) { + rspamd_lc_cmp (f1->begin, f2->begin, f1->len) == 0) { return TRUE; } @@ -289,7 +289,7 @@ rspamd_gstring_icase_equal (gconstpointer v, gconstpointer v2) { const GString *f1 = v, *f2 = v2; if (f1->len == f2->len && - g_ascii_strncasecmp (f1->str, f2->str, f1->len) == 0) { + rspamd_lc_cmp (f1->str, f2->str, f1->len) == 0) { return TRUE; } -- cgit v1.2.3