mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-27 06:13:01 +00:00
Need space of len+1 for snprintf to work
This commit is contained in:
parent
f981087d7a
commit
1ff28b3b2e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue