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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/str_util.c b/src/libutil/str_util.c
index a25dc32d5..67aa63aa8 100644
--- a/src/libutil/str_util.c
+++ b/src/libutil/str_util.c
@@ -1237,7 +1237,7 @@ rspamd_substring_search_caseless (const gchar *in, gsize inlen,
j = 0;
while (j <= inlen - srchlen) {
- if (hash_srch == hash_in && g_ascii_strncasecmp (srch, in + j, srchlen) == 0) {
+ if (hash_srch == hash_in && rspamd_lc_cmp (srch, in + j, srchlen) == 0) {
return (goffset) j;
}