Fix obvious cut-n-paste error.

Submitted by:	Thomas Ludwig <tludwig@urbanet.ch>
This commit is contained in:
Stefan Eßer 2000-06-20 15:36:38 +00:00
parent aa3524dbd4
commit 8834b38862

View File

@ -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)) {