Fix one byte overflow

This commit is contained in:
Thilo Schulz 2011-05-10 16:26:11 +00:00
parent 4374ff6ce9
commit 86d96f12b9
1 changed files with 1 additions and 1 deletions

View File

@ -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);