From 2b33cf1deed18c05dcc2b0f650abf764761f46e0 Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Thu, 30 Aug 2007 23:26:29 +0000 Subject: [PATCH] fix potential buffer overflow --- 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 31521de2..d100a22e 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);