Skip to content

Commit 62ed88d

Browse files
committed
fix: Incorrect format specifier for narrow string
1 parent 18dcb93 commit 62ed88d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • deps/first/DynamicOutput/include/DynamicOutput

deps/first/DynamicOutput/include/DynamicOutput/Macros.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
#ifdef _WIN32
2222
#define RC_DEVICE_PRINT_FUNC(fmt_var, optional_arg, optional_prefix) \
23-
wprintf_s(STR("%s%hs%ls\033[0m"), optional_prefix, log_level_to_color(static_cast<Color::Color>(optional_arg)).c_str(), m_formatter(fmt_var).c_str());
23+
wprintf_s(STR("%hs%hs%ls\033[0m"), optional_prefix, log_level_to_color(static_cast<Color::Color>(optional_arg)).c_str(), m_formatter(fmt_var).c_str());
2424
#elif __linux__
2525
#define RC_DEVICE_PRINT_FUNC(fmt_var, optional_arg, optional_prefix) \
2626
const auto as_utf8 = to_utf8_string(m_formatter(fmt_var)); \

0 commit comments

Comments
 (0)