fix potential buffer overflow

This commit is contained in:
Thilo Schulz 2007-08-30 23:26:29 +00:00
parent 0b3a077e15
commit 2b33cf1dee
1 changed files with 1 additions and 1 deletions

View File

@ -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);