fix potential buffer overflow

This commit is contained in:
Thilo Schulz 2007-08-30 23:26:29 +00:00
parent 0b3a077e15
commit 2b33cf1dee

View file

@ -438,7 +438,7 @@ void Sys_Error( const char *error, ...)
CL_Shutdown (); CL_Shutdown ();
va_start (argptr,error); va_start (argptr,error);
vsprintf (string,error,argptr); Q_vsnprintf (string, sizeof(string), error, argptr);
va_end (argptr); va_end (argptr);
fprintf(stderr, "Sys_Error: %s\n", string); fprintf(stderr, "Sys_Error: %s\n", string);