another jump prediction optimisation

This commit is contained in:
Bill Currie 2001-12-03 23:40:22 +00:00
parent 21686adf10
commit 3c06cd5620

View file

@ -108,11 +108,11 @@ Cbuf_AddText (const char *text)
l = strlen (text); l = strlen (text);
if (cmd_text.cursize + l >= cmd_text.maxsize) { if (cmd_text.cursize + l < cmd_text.maxsize) {
Sys_Printf ("Cbuf_AddText: overflow\n"); SZ_Write (&cmd_text, text, l + 1);
return; return;
} }
SZ_Write (&cmd_text, text, strlen (text)); Sys_Printf ("Cbuf_AddText: overflow\n");
} }
/* /*