fix potential buffer overflow

This commit is contained in:
Thilo Schulz committed 2007-08-30 23:26:29 +00:00
1 parent 0b3a077e15
commit 2b33cf1dee
1 file changed
+1 -1
+1 -1
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);