From 6d38b978fe9e74005ee0cb9f977a6f5646449e47 Mon Sep 17 00:00:00 2001 From: Richard Allen Date: Tue, 13 Mar 2012 22:52:39 +0000 Subject: [PATCH] Misc changes from ioq3 --- reaction/code/game/ai_dmq3.c | 2 ++ reaction/code/game/ai_main.c | 2 ++ reaction/code/game/g_cmds.c | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/reaction/code/game/ai_dmq3.c b/reaction/code/game/ai_dmq3.c index 5dfefdea..15d51529 100644 --- a/reaction/code/game/ai_dmq3.c +++ b/reaction/code/game/ai_dmq3.c @@ -186,6 +186,8 @@ * *****************************************************************************/ +// JBravo: Here be dragons. ioquake3's ai_dmq3.c rev 2116 meight have something for us. + #include "g_local.h" #include "../botlib/botlib.h" #include "../botlib/be_aas.h" diff --git a/reaction/code/game/ai_main.c b/reaction/code/game/ai_main.c index f006dec6..d4226bac 100644 --- a/reaction/code/game/ai_main.c +++ b/reaction/code/game/ai_main.c @@ -50,6 +50,8 @@ * *****************************************************************************/ +// JBravo: here be dragons. ioquake3's ai_main.c rev 2116 meight have something for us + #include "g_local.h" #include "../qcommon/q_shared.h" #include "../botlib/botlib.h" //bot lib interface diff --git a/reaction/code/game/g_cmds.c b/reaction/code/game/g_cmds.c index 5ff140ae..19b4c5da 100644 --- a/reaction/code/game/g_cmds.c +++ b/reaction/code/game/g_cmds.c @@ -578,7 +578,7 @@ void DeathmatchScoreboardMessage(gentity_t * ent) ); j = strlen(entry); - if (stringlength + j > 1024) + if (stringlength + j >= sizeof(string)) break; strcpy(string + stringlength, entry); stringlength += j;