From 86d96f12b92fda2311982375cc82752c9c80030b Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Tue, 10 May 2011 16:26:11 +0000 Subject: [PATCH] Fix one byte overflow --- code/game/g_team.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/g_team.c b/code/game/g_team.c index 9abfdc29..780525d4 100644 --- a/code/game/g_team.c +++ b/code/game/g_team.c @@ -108,7 +108,7 @@ void QDECL PrintMsg( gentity_t *ent, const char *fmt, ... ) { char *p; va_start (argptr,fmt); - if (Q_vsnprintf (msg, sizeof(msg), fmt, argptr) > sizeof(msg)) { + if (Q_vsnprintf (msg, sizeof(msg), fmt, argptr) >= sizeof(msg)) { G_Error ( "PrintMsg overrun" ); } va_end (argptr);