1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-17 10:52:46 +00:00

That looks dangerous...

This commit is contained in:
2012-11-28 19:05:16 -05:00
parent 4ee424df34
commit 16c3190f14

View File

@ -692,8 +692,8 @@ bool plStatusLog::AddLineV( uint32_t color, const char *format, va_list argument
{ {
if(fLoggingOff && !fForceLog) if(fLoggingOff && !fForceLog)
return true; return true;
char buffer[2000]; char buffer[2048];
vsprintf(buffer, format, arguments); vsnprintf(buffer, arrsize(buffer), format, arguments);
return AddLine( buffer, color ); return AddLine( buffer, color );
} }