Fixed: Now uses buffer strictly in DebugLog/LuaLog.

This commit is contained in:
spx
2010-12-14 15:11:26 +00:00
parent 8c169e4d21
commit e2d9a6cc71
2 changed files with 3 additions and 3 deletions

View File

@ -605,7 +605,7 @@ void DebugLog(const WCHAR* format, ... )
WCHAR buffer[4096];
va_list args;
va_start( args, format );
_vsnwprintf( buffer, 4096, format, args );
_vsnwprintf_s( buffer, 4096, _TRUNCATE, format, args );
LSLog(LOG_DEBUG, L"Rainmeter", buffer);
va_end(args);
}