Use safe version of sprintf and strcpy

This commit is contained in:
smallmodel committed 2024-09-20 23:08:53 +02:00
1 parent a69d9d4483
commit f9d264058b
87 files changed
+402 -395

No files matched your search

+1 -1
View File
@@ -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);