From bf468fb58950480289450b94943f1dec0185f739 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 22 Dec 2013 00:17:58 +0100 Subject: [PATCH] Curl_pp_readresp: zero terminate line The comment in the code mentions the zero terminating after having copied data, but it mistakingly zero terminated the source data and not the destination! This caused the test 864 problem discussed on the list: http://curl.haxx.se/mail/lib-2013-12/0113.html Signed-off-by: Daniel Stenberg --- lib/pingpong.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pingpong.c b/lib/pingpong.c index 683ae1963..1b2ccd9b5 100644 --- a/lib/pingpong.c +++ b/lib/pingpong.c @@ -380,7 +380,7 @@ CURLcode Curl_pp_readresp(curl_socket_t sockfd, int n; for(meow=pp->linestart_resp, n=0; meowlinestart_resp = ptr+1; /* advance pointer */ i++; /* skip this before getting out */