summaryrefslogtreecommitdiffstats
path: root/src/plugins/chartable.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/chartable.c')
-rw-r--r--src/plugins/chartable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/chartable.c b/src/plugins/chartable.c
index e48d19ea2..b6e42457a 100644
--- a/src/plugins/chartable.c
+++ b/src/plugins/chartable.c
@@ -594,7 +594,7 @@ rspamd_chartable_process_part (struct rspamd_task *task,
*/
part->capital_letters += ncap;
- cur_score /= (gdouble)part->utf_words->len;
+ cur_score /= (gdouble)part->nwords;
if (cur_score > 2.0) {
cur_score = 2.0;