must make sure \0 doesn't get into the command buffer :P

This commit is contained in:
Bill Currie 2001-12-04 03:43:47 +00:00
parent 8be15a16e6
commit e782153743

View file

@ -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");