From e782153743186e420284b10bacb07ec71e61e64a Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 4 Dec 2001 03:43:47 +0000 Subject: [PATCH] must make sure \0 doesn't get into the command buffer :P --- libs/util/cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/util/cmd.c b/libs/util/cmd.c index 8f7545418..3fa3edb09 100644 --- a/libs/util/cmd.c +++ b/libs/util/cmd.c @@ -109,7 +109,7 @@ Cbuf_AddText (const char *text) l = strlen (text); if (cmd_text.cursize + l < cmd_text.maxsize) { - SZ_Write (&cmd_text, text, l + 1); + SZ_Write (&cmd_text, text, l); return; } Sys_Printf ("Cbuf_AddText: overflow\n");