aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-27 18:03:27 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-27 18:03:27 +0100
commitc974d1eaaaee82906415b3608089f24461daf86c (patch)
treec124bb904dc35107c86af9ed8d941afe78f9380d
parent91287bb8407e3b9022bc663b07870510aedabbc3 (diff)
downloadrspamd-c974d1eaaaee82906415b3608089f24461daf86c.tar.gz
rspamd-c974d1eaaaee82906415b3608089f24461daf86c.zip
[Minor] Fix format strings
-rw-r--r--src/client/rspamc.c2
-rw-r--r--src/libmime/lang_detection.c2
-rw-r--r--src/libmime/mime_encoding.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/client/rspamc.c b/src/client/rspamc.c
index 072aa583d..f7fa2c24a 100644
--- a/src/client/rspamc.c
+++ b/src/client/rspamc.c
@@ -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);
diff --git a/src/libmime/lang_detection.c b/src/libmime/lang_detection.c
index 7cf9ffec4..e4dc2ebf4 100644
--- a/src/libmime/lang_detection.c
+++ b/src/libmime/lang_detection.c
@@ -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);
}
diff --git a/src/libmime/mime_encoding.c b/src/libmime/mime_encoding.c
index 7fd75af9d..8788403f3 100644
--- a/src/libmime/mime_encoding.c
+++ b/src/libmime/mime_encoding.c
@@ -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);