mirror of
https://github.com/bearstonem/openmohaa-vr.git
synced 2026-10-19 05:00:22 +02:00
Use safe version of sprintf and strcpy
This commit is contained in:
87 files changed
+402
-395
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user