MAXLINE not MAX_CMDLINE

Noticed by: Norman C. Rice <nrice@emu.sourcee.com>
This commit is contained in:
mdodd 1999-08-20 17:40:33 +00:00
parent 533b3f7391
commit 0e8a449986

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