Skip to content

Commit b7a1794

Browse files
committed
fixup! [GEN][ZH] Automatically add trailing new lines in debug log messages (#1232)
1 parent f1a8039 commit b7a1794

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Core/Tools/Compress/Compress.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626
// TheSuperHackers @todo Streamline and simplify the logging approach for tools
2727
static void DebugLog(const char* format, ...)
2828
{
29-
char buffer[4096];
29+
char buffer[1024];
3030
buffer[0] = 0;
3131
va_list args;
3232
va_start(args, format);
33-
vsprintf_s(buffer, format, args);
33+
vsnprintf(buffer, 1024, format, args);
3434
va_end(args);
3535
printf("%s\n", buffer);
3636
}

0 commit comments

Comments
 (0)