From 0606c5f97709f102f5fc84a7659d77db07762db3 Mon Sep 17 00:00:00 2001 From: thilo Date: Thu, 30 Aug 2007 23:26:29 +0000 Subject: fix potential buffer overflow git-svn-id: svn://svn.icculus.org/quake3/trunk@1141 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/unix/unix_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/unix/unix_main.c b/code/unix/unix_main.c index 31521de..d100a22 100644 --- a/code/unix/unix_main.c +++ b/code/unix/unix_main.c @@ -438,7 +438,7 @@ void Sys_Error( const char *error, ...) CL_Shutdown (); va_start (argptr,error); - vsprintf (string,error,argptr); + Q_vsnprintf (string, sizeof(string), error, argptr); va_end (argptr); fprintf(stderr, "Sys_Error: %s\n", string); -- cgit v1.2.3