diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-06-19 13:02:15 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-06-19 13:02:15 +0100 |
commit | ec774c1f477e6e6d15256872bc01fe2fc8987151 (patch) | |
tree | 2dc7e0606da14f4bcb6d761433475e94ab2864fc | |
parent | 48ce799a7a5cf1bde8440e3e75a677ee3e467c9d (diff) | |
download | rspamd-ec774c1f477e6e6d15256872bc01fe2fc8987151.tar.gz rspamd-ec774c1f477e6e6d15256872bc01fe2fc8987151.zip |
[Fix] Use proper format string, sigh...
-rw-r--r-- | src/client/rspamc.cxx | 6 |
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 |