From 870bcd940076b703294502019a2799440f50f6ef Mon Sep 17 00:00:00 2001 From: havoc Date: Tue, 8 Jul 2003 10:04:59 +0000 Subject: [PATCH] fixed a buffer overflow in SV_BroadcastPrintf git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3190 d7cf8633-e32d-0410-b094-e92efae38249 --- host.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/host.c b/host.c index 9a679db3..3bd6992f 100644 --- a/host.c +++ b/host.c @@ -362,11 +362,11 @@ Sends text to all active clients void SV_BroadcastPrintf(const char *fmt, ...) { va_list argptr; - char string[1024]; + char string[4096]; int i; va_start(argptr,fmt); - vsprintf(string, fmt,argptr); + vsnprintf(string, sizeof(string), fmt,argptr); va_end(argptr); for (i=0 ; i