From e6c5e132b8427574a6d5c048a6d127e4fd0e7eb8 Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Wed, 12 Nov 2025 22:50:21 +0800 Subject: [PATCH] [Fix] (MG_Util/Debug/Log): more log scratch space to avoid truncation --- MobileGL/MG_Util/Debug/Log.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MobileGL/MG_Util/Debug/Log.cpp b/MobileGL/MG_Util/Debug/Log.cpp index b96bb624..e41e322c 100644 --- a/MobileGL/MG_Util/Debug/Log.cpp +++ b/MobileGL/MG_Util/Debug/Log.cpp @@ -72,7 +72,7 @@ namespace MobileGL { std::string header = "[" + GetCurrentTime() + "] [" + GetOSName() + " " + GetThreadName() + "/" + levelTag + "]: "; - char buffer[1024]; + static char buffer[102400]; va_list args; va_start(args, fmt); int n = std::vsnprintf(buffer, sizeof(buffer), fmt, args);