Need space of len+1 for snprintf to work

This commit is contained in:
Thilo Schulz 2011-06-15 16:26:51 +00:00
parent f981087d7a
commit 1ff28b3b2e

View file

@ -929,7 +929,7 @@ void QDECL Com_sprintf(char *dest, int size, const char *fmt, ...)
va_end (argptr);
if(len >= size)
Com_Printf("Com_sprintf: Output length %d too short, require %d bytes.\n", size, len);
Com_Printf("Com_sprintf: Output length %d too short, require %d bytes.\n", size, len + 1);
}
/*