diff options
author | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-01-22 23:44:10 +0000 |
---|---|---|
committer | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-01-22 23:44:10 +0000 |
commit | eee3dc4671e3517bc7dd539682a94432c2e1fe5d (patch) | |
tree | 7c6d5864559e738094dc16ace5796559aa373a40 /code/botlib | |
parent | 471d3e541f362ccd96f78254bba54f11cdcd1d43 (diff) | |
download | ioquake3-aero-eee3dc4671e3517bc7dd539682a94432c2e1fe5d.tar.gz ioquake3-aero-eee3dc4671e3517bc7dd539682a94432c2e1fe5d.zip |
* (bug 3412) %s expansion security patch (DevHC)
git-svn-id: svn://svn.icculus.org/quake3/trunk@1250 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/botlib')
-rw-r--r-- | code/botlib/be_aas_main.c | 2 | ||||
-rw-r--r-- | code/botlib/l_script.c | 2 |
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 |