]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix bad zero terminated assumption
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 30 Mar 2017 20:36:16 +0000 (21:36 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 30 Mar 2017 20:36:16 +0000 (21:36 +0100)
src/libstat/stat_process.c

index e5c17ddff546edb7a4f5126caa8c60e838e83e18..02425b61582859b2e5be93c216e70ba9fcc909c8 100644 (file)
@@ -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);
                        }