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
@@ -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;