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/game/ai_dmnet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'code/game') 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++; -- cgit v1.2.3