curl-library
Re: Oops - Serious bug in 7.10 - more info
Date: Wed, 9 Oct 2002 14:44:44 +0200 (MET DST)
On Wed, 9 Oct 2002, Cris Bailiff wrote:
> Sorry for the confusion... I'll dig in transfer.c and see if I can see
> whats wrong, but it's pretty late in my timezone...
Apply this, test, go to bed. :-)
Index: transfer.c
===================================================================
RCS file: /cvsroot/curl/curl/lib/transfer.c,v
retrieving revision 1.114
diff -u -r1.114 transfer.c
--- transfer.c 7 Oct 2002 13:38:34 -0000 1.114
+++ transfer.c 9 Oct 2002 12:43:53 -0000
@@ -302,6 +302,9 @@
break; /* read more and try again */
}
+ /* decrease the size of the remaining buffer */
+ nread -= (k->end_ptr - k->str)+1;
+
k->str = k->end_ptr + 1; /* move past new line */
/*
-- Daniel Stenberg -- curl related mails on curl related mailing lists please ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sfReceived on 2002-10-09