From e7eddb8aae2454490aaedd5fee400be40fdaa0ec 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 104604a75..efd4528af 100644 --- a/src/dedicated/i_system.c +++ b/src/dedicated/i_system.c @@ -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);