MAXLINE not MAX_CMDLINE
Noticed by: Norman C. Rice <nrice@emu.sourcee.com>
This commit is contained in:
parent
533b3f7391
commit
0e8a449986
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user