diff options
Diffstat (limited to 'code/botlib/l_script.c')
-rw-r--r-- | code/botlib/l_script.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/code/botlib/l_script.c b/code/botlib/l_script.c index 333e1ec..3e43fda 100644 --- a/code/botlib/l_script.c +++ b/code/botlib/l_script.c @@ -236,7 +236,7 @@ void QDECL ScriptError(script_t *script, char *str, ...) if (script->flags & SCFL_NOERRORS) return; 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", script->filename, script->line, text); @@ -262,7 +262,7 @@ void QDECL ScriptWarning(script_t *script, char *str, ...) if (script->flags & SCFL_NOWARNINGS) return; 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", script->filename, script->line, text); |