mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-27 22:42:09 +00:00
fix potential buffer overflow
This commit is contained in:
parent
0b3a077e15
commit
2b33cf1dee
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue