Fix obvious cut-n-paste error.
Submitted by: Thomas Ludwig <tludwig@urbanet.ch>
This commit is contained in:
parent
aa3524dbd4
commit
8834b38862
@ -404,7 +404,7 @@ cmdscanner(top)
|
||||
|
||||
if ((buf = el_gets(el, &num)) == NULL || num == 0)
|
||||
quit(0, 0);
|
||||
if (line[--num] == '\n') {
|
||||
if (buf[--num] == '\n') {
|
||||
if (num == 0)
|
||||
break;
|
||||
} else if (num >= sizeof(line)) {
|
||||
|
Loading…
Reference in New Issue
Block a user