From d8973bf16be2af304065df1e210d2681a78cc82e Mon Sep 17 00:00:00 2001 From: mogemimi Date: Wed, 3 May 2023 23:58:40 +0900 Subject: [PATCH] Add FMT_STRING for format_to() call (#3413) --- src/os.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/os.cc b/src/os.cc index f530d7a5..f294ea86 100644 --- a/src/os.cc +++ b/src/os.cc @@ -169,8 +169,8 @@ void detail::format_windows_error(detail::buffer& out, int error_code, if (msg) { auto utf8_message = utf16_to_utf8(); if (utf8_message.convert(msg) == ERROR_SUCCESS) { - fmt::format_to(buffer_appender(out), "{}: {}", message, - string_view(utf8_message)); + fmt::format_to(buffer_appender(out), FMT_STRING("{}: {}"), + message, string_view(utf8_message)); return; } }