From: wessels <> Date: Sun, 26 Oct 1997 14:16:38 +0000 (+0000) Subject: off-by-one bug caused ABR X-Git-Tag: SQUID_3_0_PRE1~4678 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e29f7586697a804e389e8a77b304af1c78074216;p=thirdparty%2Fsquid.git off-by-one bug caused ABR --- diff --git a/src/ftp.cc b/src/ftp.cc index 2ca79d7e5e..2160909042 100644 --- a/src/ftp.cc +++ b/src/ftp.cc @@ -1,6 +1,6 @@ /* - * $Id: ftp.cc,v 1.152 1997/10/26 02:35:30 wessels Exp $ + * $Id: ftp.cc,v 1.153 1997/10/26 07:16:38 wessels Exp $ * * DEBUG: section 9 File Transfer Protocol (FTP) * AUTHOR: Harvest Derived @@ -593,7 +593,7 @@ ftpParseListing(FtpStateData * ftpState, int len) assert(usable <= len); if (usable < len) { /* must copy partial line to beginning of buf */ - linelen = len - usable + 1; + linelen = len - usable; assert(linelen > 0); if (linelen > 4096) linelen = 4096;