MAXLINE not MAX_CMDLINE

Noticed by: Norman C. Rice <nrice@emu.sourcee.com>
This commit is contained in:
Matthew N. Dodd 1999-08-20 17:40:33 +00:00
parent 70ff7ab750
commit 6c7ed627ad
1 changed files with 1 additions and 1 deletions

View File

@ -826,7 +826,7 @@ getcmds()
if ((bp = el_gets(el, &num)) == NULL || num == 0)
return;
len = (num > MAX_CMDLINE) ? MAX_CMDLINE : num;
len = (num > MAXLINE) ? MAXLINE : num;
memcpy(line, bp, len);
line[len] = 0;
history(hist, H_ENTER, bp);