aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-06-19 13:02:15 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-06-19 13:02:15 +0100
commitec774c1f477e6e6d15256872bc01fe2fc8987151 (patch)
tree2dc7e0606da14f4bcb6d761433475e94ab2864fc
parent48ce799a7a5cf1bde8440e3e75a677ee3e467c9d (diff)
downloadrspamd-ec774c1f477e6e6d15256872bc01fe2fc8987151.tar.gz
rspamd-ec774c1f477e6e6d15256872bc01fe2fc8987151.zip
[Fix] Use proper format string, sigh...
-rw-r--r--src/client/rspamc.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/rspamc.cxx b/src/client/rspamc.cxx
index d9a1c2dea..a1028cc51 100644
--- a/src/client/rspamc.cxx
+++ b/src/client/rspamc.cxx
@@ -1511,11 +1511,11 @@ rspamc_mime_output(FILE *out, ucl_object_t *result, GString *input,
/* Write message */
/* Original headers */
- fmt::print(out, std::string_view{input->str, (std::size_t)headers_pos});
+ fmt::print(out, "{}", std::string_view{input->str, (std::size_t)headers_pos});
/* Added headers */
- fmt::print(out, added_headers);
+ fmt::print(out, "{}", added_headers);
/* Message body */
- fmt::print(out, input->str + headers_pos);
+ fmt::print(out, "{}", input->str + headers_pos);
}
static void