From ac2a91a4e8599997c40773381f9748e1683186b3 Mon Sep 17 00:00:00 2001 From: lizzie Date: Thu, 20 Aug 2026 07:18:21 +0000 Subject: [PATCH] yay --- src/common/logging.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/logging.cpp b/src/common/logging.cpp index 1b586acf34..8537b174fd 100644 --- a/src/common/logging.cpp +++ b/src/common/logging.cpp @@ -225,8 +225,9 @@ struct ColorConsoleBackend final : public Backend { auto const df = GetDirectFormatArgs(entry); // more restrictive, because take for example this simple prelude: // [ 50.872256] Config common/settings.cpp:142:LogSettings: - char buffer[100]; + char buffer[200]; auto result = fmt::format_to_n(buffer, sizeof(buffer) - 1, "\x1b{}[{:4d}.{:06d}] {} <{}> {}:{}:{}: ", color_str, df.time_seconds, df.time_fractional, df.class_name, df.level_name, entry.filename, entry.line_num, entry.function, entry.message); + buffer[result.size] = '\0'; std::fwrite(buffer, 1, result.size, stdout); std::fwrite(entry.message, 1, entry.message_len, stdout); std::fwrite("\x1b[0m\n", 1, sizeof("\x1b[0m\n"), stdout);