mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
Fix one byte overflow
This commit is contained in:
parent
4374ff6ce9
commit
86d96f12b9
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue