]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Do not skip the last character
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 31 Oct 2017 19:34:42 +0000 (19:34 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 31 Oct 2017 19:34:42 +0000 (19:34 +0000)
MFH: rspamd-1.6

src/libstat/tokenizers/tokenizers.c

index aec801b056fb1c3975bc6b213bce3a7183ff9e41..d253c1aa6879cddc884bb2d580c51599c0a912cd 100644 (file)
@@ -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;
        }