diff lib/protocols.c @ 215:3d6e024dbf31

2003-7-7 Brian Masney <masneyb@gftp.org> * configure.in src/gtk/Makefile.am src/text/Makefile.am - if the OpenSSL libraries are available on the system, link them in and define USE_SSL. The generic SSL engine and the HTTPS protocol checks for this * lib/protocols.c (gftp_get_line) - small fix * lib/rfc2068.c - fixed several bugs in the handling of chunked messages that are spread across multiple packets (the HTTPS protocol unconvered all of these) * lib/sslcommon.c - several fixes and cleanups
author masneyb
date Tue, 08 Jul 2003 02:09:30 +0000
parents 3f2203e70218
children de6a2e8e51cb
line wrap: on
line diff
--- a/lib/protocols.c	Mon Jul 07 15:15:15 2003 +0000
+++ b/lib/protocols.c	Tue Jul 08 02:09:30 2003 +0000
@@ -2073,8 +2073,8 @@
               (*rbuf)->eof = 1;
             }
 
-          (*rbuf)->buffer[ret + (*rbuf)->cur_bufsize] = '\0';
           (*rbuf)->cur_bufsize += ret;
+          (*rbuf)->curpos[(*rbuf)->cur_bufsize] = '\0';
         }
     }
   while (retval == GFTP_ERETRYABLE);