From 1ff28b3b2ed7f33209b35128f00f9ed9e613cc00 Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Wed, 15 Jun 2011 16:26:51 +0000 Subject: [PATCH] Need space of len+1 for snprintf to work --- code/qcommon/q_shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/qcommon/q_shared.c b/code/qcommon/q_shared.c index 1c99b4de..2cae73df 100644 --- a/code/qcommon/q_shared.c +++ b/code/qcommon/q_shared.c @@ -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); } /*