From 7de3b3918c13d34da9a8a468ee7bbe4c70504e87 Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Wed, 15 Jun 2011 16:26:51 +0000 Subject: Need space of len+1 for snprintf to work --- src/qcommon/q_shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } /* -- cgit