- Replace vsprintf function in bg_lib.c with vsnprintf implementation started by Patrick Powell.
- Remove all calls to vsprintf in the engine and gamecode and replace them with calls to vsnprintf.
This commit is contained in:
parent
5728fc2ec8
commit
bb47026b5f
19 changed files with 813 additions and 309 deletions
|
@ -269,7 +269,7 @@ void QDECL Com_Error( int code, const char *fmt, ... ) {
|
|||
com_errorEntered = qtrue;
|
||||
|
||||
va_start (argptr,fmt);
|
||||
vsprintf (com_errorMessage,fmt,argptr);
|
||||
Q_vsnprintf (com_errorMessage, sizeof(com_errorMessage),fmt,argptr);
|
||||
va_end (argptr);
|
||||
|
||||
if (code != ERR_DISCONNECT && code != ERR_NEED_CD)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue