From eaae7226b37275a90199bc5d907c48374e48f294 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 30 Mar 2017 21:36:16 +0100 Subject: [PATCH] [Minor] Fix bad zero terminated assumption --- src/libstat/stat_process.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c index e5c17ddff..02425b615 100644 --- a/src/libstat/stat_process.c +++ b/src/libstat/stat_process.c @@ -130,7 +130,8 @@ rspamd_stat_tokenize_parts_metadata (struct rspamd_stat_ctx *st_ctx, elt.len = part->ct->boundary.len; if (elt.len) { - msg_debug_task ("added stat tokens for mime boundary '%s'", elt.begin); + msg_debug_task ("added stat tokens for mime boundary '%*s'", + (gint)elt.len, elt.begin); g_array_append_val (ar, elt); } -- 2.39.5