- 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:
@@ -60,7 +60,7 @@ void QDECL AAS_Error(char *fmt, ...)
|
||||
va_list arglist;
|
||||
|
||||
va_start(arglist, fmt);
|
||||
vsprintf(str, fmt, arglist);
|
||||
Q_vsnprintf(str, sizeof(str), fmt, arglist);
|
||||
va_end(arglist);
|
||||
botimport.Print(PRT_FATAL, "%s", str);
|
||||
} //end of the function AAS_Error
|
||||
|
Reference in New Issue
Block a user