aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);