aboutsummaryrefslogtreecommitdiffstats
path: root/code/game
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-01-22 23:44:10 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-01-22 23:44:10 +0000
commiteee3dc4671e3517bc7dd539682a94432c2e1fe5d (patch)
tree7c6d5864559e738094dc16ace5796559aa373a40 /code/game
parent471d3e541f362ccd96f78254bba54f11cdcd1d43 (diff)
downloadioquake3-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/game')
-rw-r--r--code/game/ai_dmnet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/code/game/ai_dmnet.c b/code/game/ai_dmnet.c
index 9125a53..5050bd1 100644
--- a/code/game/ai_dmnet.c
+++ b/code/game/ai_dmnet.c
@@ -85,7 +85,7 @@ void BotDumpNodeSwitches(bot_state_t *bs) {
ClientName(bs->client, netname, sizeof(netname));
BotAI_Print(PRT_MESSAGE, "%s at %1.1f switched more than %d AI nodes\n", netname, FloatTime(), MAX_NODESWITCHES);
for (i = 0; i < numnodeswitches; i++) {
- BotAI_Print(PRT_MESSAGE, nodeswitch[i]);
+ BotAI_Print(PRT_MESSAGE, "%s", nodeswitch[i]);
}
BotAI_Print(PRT_FATAL, "");
}
@@ -102,7 +102,7 @@ void BotRecordNodeSwitch(bot_state_t *bs, char *node, char *str, char *s) {
Com_sprintf(nodeswitch[numnodeswitches], 144, "%s at %2.1f entered %s: %s from %s\n", netname, FloatTime(), node, str, s);
#ifdef DEBUG
if (0) {
- BotAI_Print(PRT_MESSAGE, nodeswitch[numnodeswitches]);
+ BotAI_Print(PRT_MESSAGE, "%s", nodeswitch[numnodeswitches]);
}
#endif //DEBUG
numnodeswitches++;