Fix obvious cut-n-paste error.
Submitted by: Thomas Ludwig <tludwig@urbanet.ch>
This commit is contained in:
parent
de6b3245ff
commit
2e88041b72
@ -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…
x
Reference in New Issue
Block a user