aboutsummaryrefslogtreecommitdiffstats
path: root/code/botlib
diff options
context:
space:
mode:
Diffstat (limited to 'code/botlib')
-rw-r--r--code/botlib/be_aas_main.c2
-rw-r--r--code/botlib/l_script.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/code/botlib/be_aas_main.c b/code/botlib/be_aas_main.c
index c07eb88..2963ecd 100644
--- a/code/botlib/be_aas_main.c
+++ b/code/botlib/be_aas_main.c
@@ -62,7 +62,7 @@ void QDECL AAS_Error(char *fmt, ...)
va_start(arglist, fmt);
vsprintf(str, fmt, arglist);
va_end(arglist);
- botimport.Print(PRT_FATAL, str);
+ botimport.Print(PRT_FATAL, "%s", str);
} //end of the function AAS_Error
//===========================================================================
//
diff --git a/code/botlib/l_script.c b/code/botlib/l_script.c
index 5e4b128..0dc849f 100644
--- a/code/botlib/l_script.c
+++ b/code/botlib/l_script.c
@@ -1428,6 +1428,6 @@ void PS_SetBaseFolder(char *path)
#ifdef BSPC
sprintf(basefolder, path);
#else
- Com_sprintf(basefolder, sizeof(basefolder), path);
+ Com_sprintf(basefolder, sizeof(basefolder), "%s", path);
#endif
} //end of the function PS_SetBaseFolder