summaryrefslogtreecommitdiffstats
path: root/usr.bin/ftp
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/ftp')
-rw-r--r--usr.bin/ftp/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/ftp/main.c b/usr.bin/ftp/main.c
index eb98a97..f38d3b0 100644
--- a/usr.bin/ftp/main.c
+++ b/usr.bin/ftp/main.c
@@ -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)) {
OpenPOWER on IntegriCloud