aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-10-31 19:34:42 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-10-31 19:34:42 +0000
commita945f44465d3186891d2fefc05a1fa33754b1182 (patch)
tree9badcbb491872db60e5a5f3af0831d0c692ba78e /src/libstat
parented0ef2df70c5f3c3028471ff526f72bd1ce520bb (diff)
downloadrspamd-a945f44465d3186891d2fefc05a1fa33754b1182.tar.gz
rspamd-a945f44465d3186891d2fefc05a1fa33754b1182.zip
[Fix] Do not skip the last character
MFH: rspamd-1.6
Diffstat (limited to 'src/libstat')
-rw-r--r--src/libstat/tokenizers/tokenizers.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstat/tokenizers/tokenizers.c b/src/libstat/tokenizers/tokenizers.c
index aec801b05..d253c1aa6 100644
--- a/src/libstat/tokenizers/tokenizers.c
+++ b/src/libstat/tokenizers/tokenizers.c
@@ -256,6 +256,7 @@ rspamd_tokenizer_get_word (rspamd_stat_token_t * buf,
/* Last character */
if (state == feed_token) {
+ p = &s[i];
goto set_token;
}