mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Use safe version of sprintf and strcpy
This commit is contained in:
parent
a69d9d4483
commit
f9d264058b
87 changed files with 402 additions and 395 deletions
|
@ -417,7 +417,7 @@ void ScriptVM::error(const char *format, ...)
|
|||
va_list va;
|
||||
|
||||
va_start(va, format);
|
||||
vsprintf(buffer, format, va);
|
||||
Q_vsnprintf(buffer, sizeof(buffer), format, va);
|
||||
va_end(va);
|
||||
|
||||
gi.Printf("----------------------------------------------------------\n%s\n", buffer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue