diff options
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ftp/main.c | 2 |
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)) { |