diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-03-31 17:19:29 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-03-31 17:19:29 +0100 |
commit | 87820e7a7119207e0b8f5de334acb8fe4de1bd31 (patch) | |
tree | 8211fb899d21ea0a7fd62b6c13591d77f6e5ea3a /src/libstat/tokenizers | |
parent | 87c2c304cd546f389e6b7b4fb349d08a76271ba6 (diff) | |
download | rspamd-87820e7a7119207e0b8f5de334acb8fe4de1bd31.tar.gz rspamd-87820e7a7119207e0b8f5de334acb8fe4de1bd31.zip |
[Minor] Some fixes for displaying tokens info
Diffstat (limited to 'src/libstat/tokenizers')
-rw-r--r-- | src/libstat/tokenizers/osb.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstat/tokenizers/osb.c b/src/libstat/tokenizers/osb.c index 7c8da26f3..8d1742cc1 100644 --- a/src/libstat/tokenizers/osb.c +++ b/src/libstat/tokenizers/osb.c @@ -346,8 +346,9 @@ rspamd_tokenizer_osb (struct rspamd_stat_ctx *ctx, if (processed < window_size) { /* Just fill a hashpipe */ - hashpipe[window_size - ++processed].h = cur; - hashpipe[window_size - ++processed].t = token; + ++processed; + hashpipe[window_size - processed].h = cur; + hashpipe[window_size - processed].t = token; } else { /* Shift hashpipe */ |