Use safe version of sprintf and strcpy

This commit is contained in:
smallmodel 2024-09-20 21:53:48 +02:00
parent a69d9d4483
commit f9d264058b
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512
87 changed files with 402 additions and 395 deletions

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;