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);
|
va_end (argptr);
|
||||||
|
|
||||||
if(len >= size)
|
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…
Add table
Add a link
Reference in a new issue