mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-12 23:44:21 +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;
|
char *p;
|
||||||
|
|
||||||
va_start (argptr,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" );
|
G_Error ( "PrintMsg overrun" );
|
||||||
}
|
}
|
||||||
va_end (argptr);
|
va_end (argptr);
|
||||||
|
|
Loading…
Reference in a new issue