- 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
|
@ -258,7 +258,7 @@ void PC_SourceWarning(int handle, char *format, ...) {
|
|||
static char string[4096];
|
||||
|
||||
va_start (argptr, format);
|
||||
vsprintf (string, format, argptr);
|
||||
Q_vsnprintf (string, sizeof(string), format, argptr);
|
||||
va_end (argptr);
|
||||
|
||||
filename[0] = '\0';
|
||||
|
@ -280,7 +280,7 @@ void PC_SourceError(int handle, char *format, ...) {
|
|||
static char string[4096];
|
||||
|
||||
va_start (argptr, format);
|
||||
vsprintf (string, format, argptr);
|
||||
Q_vsnprintf (string, sizeof(string), format, argptr);
|
||||
va_end (argptr);
|
||||
|
||||
filename[0] = '\0';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue