mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
must make sure \0 doesn't get into the command buffer :P
This commit is contained in:
parent
8be15a16e6
commit
e782153743
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue