fix buffer overflows in dedi build too

This commit is contained in:
Alug committed 2025-10-09 18:16:57 +02:00
1 parent d122f1bf96
commit e7eddb8aae
1 file changed
+2 -2
+2 -2
View File
@@ -1474,7 +1474,7 @@ void I_Error(const char *error, ...)
if (errorcount > 20)
{
va_start(argptr, error);
vsprintf(buffer, error, argptr);
vsnprintf(buffer, 8192, error, argptr);
va_end(argptr);
I_OutputMsg("SRB2Kart %s Recursive Error", buffer);
@@ -1488,7 +1488,7 @@ void I_Error(const char *error, ...)
// Display error message in the console before we start shutting it down
va_start(argptr, error);
vsprintf(buffer, error, argptr);
vsnprintf(buffer, 8192, error, argptr);
va_end(argptr);
I_OutputMsg("\nI_Error(): %s\n", buffer);