From: Vsevolod Stakhov Date: Tue, 31 Oct 2017 19:34:42 +0000 (+0000) Subject: [Fix] Do not skip the last character X-Git-Tag: 1.6.6~3^2~34 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b7c2dc3665c5df8c190cdbef3a813d5542e8b14c;p=rspamd.git [Fix] Do not skip the last character MFH: rspamd-1.6 --- 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; }