summaryrefslogtreecommitdiffstats
path: root/src/libutil/fstring.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-02-07 13:56:07 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-02-07 13:56:07 +0000
commitf66cd95dcc349044bd989ee289e8f78a406e404d (patch)
tree173ba1058a99c03a47b7829e7521a470864e0ea9 /src/libutil/fstring.c
parentda92ec30057ab81808905397fe8942416f31a661 (diff)
downloadrspamd-f66cd95dcc349044bd989ee289e8f78a406e404d.tar.gz
rspamd-f66cd95dcc349044bd989ee289e8f78a406e404d.zip
[Minor] Oops, fix starts_with
Diffstat (limited to 'src/libutil/fstring.c')
-rw-r--r--src/libutil/fstring.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/fstring.c b/src/libutil/fstring.c
index 967de9e98..b00b71e12 100644
--- a/src/libutil/fstring.c
+++ b/src/libutil/fstring.c
@@ -382,7 +382,7 @@ rspamd_ftok_starts_with (const rspamd_ftok_t *s1,
g_assert (s1 != NULL && s2 != NULL);
if (s1->len >= s2->len) {
- return !!(memcmp (s1->begin, s2->begin, s1->len) == 0);
+ return !!(memcmp (s1->begin, s2->begin, s2->len) == 0);
}
return FALSE;