mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
Let's use vsnprintf
for those legacy methods...
This commit is contained in:
@ -323,7 +323,7 @@ void PatcherLog(PatcherLogType type, const char* format, ...)
|
||||
if (type == kError)
|
||||
{
|
||||
sLastError = new char[1024]; // Deleted by Finish(false)
|
||||
vsprintf(sLastError, format, args);
|
||||
vsnprintf(sLastError, 1024, format, args);
|
||||
gStatusLog->AddLine(sLastError, color);
|
||||
} else
|
||||
gStatusLog->AddLineV(color, format, args);
|
||||
|
Reference in New Issue
Block a user