1
0
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:
2013-02-01 14:45:22 -05:00
parent 798764d84e
commit 470ed86187
3 changed files with 3 additions and 3 deletions

View File

@ -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);