]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Use proper format string, sigh...
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sun, 19 Jun 2022 12:02:15 +0000 (13:02 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sun, 19 Jun 2022 12:02:15 +0000 (13:02 +0100)
src/client/rspamc.cxx

index d9a1c2dea19591e6215369d093f0b0f9bea07dd3..a1028cc51d4bb6ea3fbe0f9a94bd5d7790a50b38 100644 (file)
@@ -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