From a93fbccaea8bcec71180add91cf9957dda2a1954 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 22 Nov 2016 17:39:46 +0000 Subject: [Fix] Fix various warnings and issues --- src/libstat/stat_process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstat/stat_process.c') diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c index 6bd1c4e2a..09f7b8a36 100644 --- a/src/libstat/stat_process.c +++ b/src/libstat/stat_process.c @@ -135,7 +135,7 @@ rspamd_stat_tokenize_parts_metadata (struct rspamd_stat_ctx *st_ctx, if (part->content && part->content->len > 1) { rspamd_snprintf (tmpbuf, sizeof (tmpbuf), "mime%d:%dlog", - (gint)log2 (part->content->len)); + i, (gint)log2 (part->content->len)); elt.begin = rspamd_mempool_strdup (task->task_pool, tmpbuf); elt.len = strlen (elt.begin); g_array_append_val (ar, elt); -- cgit v1.2.3