bug parsing multiline responses
authorewt <devnull@localhost>
Wed, 22 Jan 1997 20:25:38 +0000 (20:25 +0000)
committerewt <devnull@localhost>
Wed, 22 Jan 1997 20:25:38 +0000 (20:25 +0000)
CVS patchset: 1332
CVS date: 1997/01/22 20:25:38

ftp.c

diff --git a/ftp.c b/ftp.c
index 7651972..b4dd547 100644 (file)
--- a/ftp.c
+++ b/ftp.c
@@ -90,7 +90,7 @@ static int ftpCheckResponse(int sock, char ** str) {
 
        bufLength += bytesRead;
 
-       buf[bufLength + 1] = '\0';
+       buf[bufLength] = '\0';
 
        /* divide the response into lines, checking each one to see if 
           we are finished or need to continue */