mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-04-24 10:38:53 +00:00
In Optick Core::DumpProgressFormatted() use vsnprintf() vs. vsprintf() for non-MSVC compilers
This commit is contained in:
parent
99d9868bd9
commit
02eda6f1d1
1 changed files with 2 additions and 1 deletions
|
@ -840,7 +840,8 @@ void Core::DumpProgressFormatted(const char* format, ...)
|
|||
#ifdef OPTICK_MSVC
|
||||
vsprintf_s(buffer, format, arglist);
|
||||
#else
|
||||
vsprintf(buffer, format, arglist);
|
||||
// SRS - use vsnprintf() for buffer security and to eliminate warning
|
||||
vsnprintf(buffer, sizeof(buffer), format, arglist);
|
||||
#endif
|
||||
va_end(arglist);
|
||||
DumpProgress(buffer);
|
||||
|
|
Loading…
Reference in a new issue