diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-09-11 16:03:30 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-09-11 16:03:30 +0100 |
commit | bf51a52a99976f1087610dfa52ef2062d34d1f15 (patch) | |
tree | 95d07b800af3134ae2a469c342a91dea8ad160d4 /src/libstat | |
parent | 333db5c8ea3bd8140fc6d1f228a912fd21264dfd (diff) | |
download | rspamd-bf51a52a99976f1087610dfa52ef2062d34d1f15.tar.gz rspamd-bf51a52a99976f1087610dfa52ef2062d34d1f15.zip |
[Fix] Fix words decay algorithm
Diffstat (limited to 'src/libstat')
-rw-r--r-- | src/libstat/tokenizers/tokenizers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstat/tokenizers/tokenizers.c b/src/libstat/tokenizers/tokenizers.c index ac7f8be85..6804dff8a 100644 --- a/src/libstat/tokenizers/tokenizers.c +++ b/src/libstat/tokenizers/tokenizers.c @@ -428,7 +428,7 @@ start_over: } if (rspamd_tokenize_check_limit (decay, word_decay, res->len, - &hv, &prob, &token, pos - text, len)) { + &hv, &prob, &token, p, len)) { if (!decay) { decay = TRUE; } else { |