commit ce89ee2ec428d13295db69a9c652a81400f538f3 Author: devhc Date: Sun Apr 24 04:24:56 2011 +0200 fix a couple of OB1s diff --git a/src/game/g_team.c b/src/game/g_team.c index 6f407a3..3378628 100644 --- a/src/game/g_team.c +++ b/src/game/g_team.c @@ -32,7 +32,7 @@ void QDECL PrintMsg( gentity_t *ent, const char *fmt, ... ) 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 ); @@ -382,7 +382,7 @@ void TeamplayInfoMessage( gentity_t *ent ) j = strlen( entry ); - if( stringlength + j > sizeof( string ) ) + if( stringlength + j >= sizeof( string ) ) break; strcpy( string + stringlength, entry );