From 87820e7a7119207e0b8f5de334acb8fe4de1bd31 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 31 Mar 2017 17:19:29 +0100 Subject: [Minor] Some fixes for displaying tokens info --- src/libstat/tokenizers/osb.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/libstat/tokenizers') 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 */ -- cgit v1.2.3