- 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:
1 parent
5728fc2ec8
commit
bb47026b5f
19 files changed
+813
-309
No files matched your search
@@ -131,7 +131,7 @@ void QDECL SourceError(source_t *source, char *str, ...)
|
||||
va_list ap;
|
||||
|
||||
va_start(ap, str);
|
||||
vsprintf(text, str, ap);
|
||||
Q_vsnprintf(text, sizeof(text), str, ap);
|
||||
va_end(ap);
|
||||
#ifdef BOTLIB
|
||||
botimport.Print(PRT_ERROR, "file %s, line %d: %s\n", source->scriptstack->filename, source->scriptstack->line, text);
|
||||
@@ -155,7 +155,7 @@ void QDECL SourceWarning(source_t *source, char *str, ...)
|
||||
va_list ap;
|
||||
|
||||
va_start(ap, str);
|
||||
vsprintf(text, str, ap);
|
||||
Q_vsnprintf(text, sizeof(text), str, ap);
|
||||
va_end(ap);
|
||||
#ifdef BOTLIB
|
||||
botimport.Print(PRT_WARNING, "file %s, line %d: %s\n", source->scriptstack->filename, source->scriptstack->line, text);
|
||||
|
||||
Reference in new issue
Block a user