From f2afc5135c340b69d2c3de64d9423d03d0df07fa Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 9 Oct 2025 18:16:57 +0200 Subject: [PATCH] fix buffer overflows in dedi build too --- src/dedicated/i_system.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dedicated/i_system.c b/src/dedicated/i_system.c index d0914be56..865ae4584 100644 --- a/src/dedicated/i_system.c +++ b/src/dedicated/i_system.c @@ -1468,7 +1468,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); @@ -1482,7 +1482,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);