From: Vsevolod Stakhov Date: Thu, 30 Mar 2017 20:36:16 +0000 (+0100) Subject: [Minor] Fix bad zero terminated assumption X-Git-Tag: 1.5.5~73 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=eaae7226b37275a90199bc5d907c48374e48f294;p=rspamd.git [Minor] Fix bad zero terminated assumption --- 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); }