From 83c470a4439e132973a7668a6d6822af07708326 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 4 Feb 2005 13:42:41 +0000 Subject: David Byron pointed out that this -1 on the buffer size is pointless since the buffer is already BUFSIZE +1 one big to fit the extra trailing zero. This change is reported to fix David's weird SSL problem... --- lib/transfer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/transfer.c') diff --git a/lib/transfer.c b/lib/transfer.c index aed230a17..bf67842a1 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -285,7 +285,7 @@ CURLcode Curl_readwrite(struct connectdata *conn, read or we get a EWOULDBLOCK */ do { size_t buffersize = data->set.buffer_size? - data->set.buffer_size:BUFSIZE -1; + data->set.buffer_size:BUFSIZE; /* receive data from the network! */ int readrc = Curl_read(conn, conn->sockfd, k->buf, buffersize, &nread); -- cgit v1.2.3