Fix obvious cut-n-paste error.

Submitted by:	Thomas Ludwig <tludwig@urbanet.ch>
This commit is contained in:
se 2000-06-20 15:36:38 +00:00
parent de6b3245ff
commit 2e88041b72

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