aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/str_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil/str_util.c')
-rw-r--r--src/libutil/str_util.c4
1 files 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;
}