mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2025-01-18 23:21:39 +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 ();
|
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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue