summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-02-04 13:42:41 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-02-04 13:42:41 +0000
commit83c470a4439e132973a7668a6d6822af07708326 (patch)
tree6bf42559237fd6989c2e407fc351471a32350451
parentab96e2d6e98a798c065a8b3760c794bd7a3b9275 (diff)
downloadgnurl-83c470a4439e132973a7668a6d6822af07708326.tar.gz
gnurl-83c470a4439e132973a7668a6d6822af07708326.tar.bz2
gnurl-83c470a4439e132973a7668a6d6822af07708326.zip
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...
-rw-r--r--lib/transfer.c2
1 files changed, 1 insertions, 1 deletions
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);