]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix format strings
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 27 Oct 2018 17:03:27 +0000 (18:03 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 27 Oct 2018 17:03:27 +0000 (18:03 +0100)
src/client/rspamc.c
src/libmime/lang_detection.c
src/libmime/mime_encoding.c

index 072aa583d8f39c62ad705ff26ba4f7963d3f33e4..f7fa2c24a58b51e48f45057de7f9af871a94827c 100644 (file)
@@ -1365,7 +1365,7 @@ rspamc_mime_output (FILE *out, ucl_object_t *result, GString *input,
                                symbuf->str,
                                0, nl_type, ",");
                rspamd_printf_gstring (added_headers, "X-Spam-Symbols: %v%s",
-                               folded_symbuf, line_end, ",");
+                               folded_symbuf, line_end);
 
                g_string_free (folded_symbuf, TRUE);
                g_string_free (symbuf, TRUE);
index 7cf9ffec4c88c55c4443843bbe52a274a8a85504..e4dc2ebf4aa7dc4573101eef7895cdd774827162 100644 (file)
@@ -784,7 +784,7 @@ rspamd_language_detector_init (struct rspamd_config *cfg)
                });
 
                if (!rspamd_multipattern_compile (ret->stop_words[i].mp, &err)) {
-                       msg_err_config ("cannot compile stop words for %d language group: %e",
+                       msg_err_config ("cannot compile stop words for %z language group: %e",
                                        i, err);
                        g_error_free (err);
                }
index 7fd75af9da26aa0d90d5c97bdf48a061237fe267..8788403f3ed7e4af785ee0bc094ba40dbe7f9789 100644 (file)
@@ -446,7 +446,7 @@ rspamd_mime_text_part_utf8_convert (struct rspamd_task *task,
                return FALSE;
        }
 
-       msg_info_task ("converted from %s to UTF-8 inlen: %z, outlen: %d",
+       msg_info_task ("converted from %s to UTF-8 inlen: %d, outlen: %d",
                        charset, input->len, r);
        text_part->utf_raw_content = rspamd_mempool_alloc (task->task_pool,
                        sizeof (*text_part->utf_raw_content) + sizeof (gpointer) * 4);