diff options
author | Thilo Schulz <arny@ats.s.bawue.de> | 2011-06-15 16:26:51 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-09 23:17:49 +0000 |
commit | 7de3b3918c13d34da9a8a468ee7bbe4c70504e87 (patch) | |
tree | ea748ae655df378a770d7e9ec6bb3980e027238d | |
parent | 8a99a3a144b118784e8befe6ebc6df0408c78c9c (diff) |
Need space of len+1 for snprintf to work
-rw-r--r-- | src/qcommon/q_shared.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qcommon/q_shared.c b/src/qcommon/q_shared.c index 3e95a398..b930b0ec 100644 --- a/src/qcommon/q_shared.c +++ b/src/qcommon/q_shared.c @@ -948,7 +948,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); } /* |