commit ec774c1: [Fix] Use proper format string, sigh...

Vsevolod Stakhov vsevolod at rspamd.com
Sun Jun 19 12:07:05 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-06-19 13:02:15 +0100
URL: https://github.com/rspamd/rspamd/commit/ec774c1f477e6e6d15256872bc01fe2fc8987151 (HEAD -> master)

[Fix] Use proper format string, sigh...

---
 src/client/rspamc.cxx | 6 +++---
 1 file 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


More information about the Commits mailing list