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
|
@ -1455,7 +1455,7 @@ void ScriptCompiler::CompileError(unsigned int sourcePos, const char *format, ..
|
|||
va_list va;
|
||||
|
||||
va_start(va, format);
|
||||
vsprintf(buffer, format, va);
|
||||
Q_vsnprintf(buffer, sizeof(buffer), format, va);
|
||||
va_end(va);
|
||||
|
||||
compileSuccess = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue