From eee3dc4671e3517bc7dd539682a94432c2e1fe5d Mon Sep 17 00:00:00 2001 From: tma Date: Tue, 22 Jan 2008 23:44:10 +0000 Subject: * (bug 3412) %s expansion security patch (DevHC) git-svn-id: svn://svn.icculus.org/quake3/trunk@1250 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/botlib/be_aas_main.c | 2 +- code/botlib/l_script.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'code/botlib') 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 -- cgit v1.2.3