diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-07 13:10:37 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-07 13:10:37 +0100 |
commit | 32dd7838e54e6c62d6972ea6b49b3e73ac926c2d (patch) | |
tree | 6a8f2bb23175a51cf139ee2ad7dc15fcdccfdb28 | |
parent | 62b2188d8282e5dda9a388a851cd701434f69124 (diff) | |
download | rspamd-32dd7838e54e6c62d6972ea6b49b3e73ac926c2d.tar.gz rspamd-32dd7838e54e6c62d6972ea6b49b3e73ac926c2d.zip |
Use rspamd_lc_cmp for fixed strings comparisions.
-rw-r--r-- | src/libutil/str_util.c | 4 |
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; } |