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