aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http.c b/lib/http.c
index e0d3cda9b..c4d44b47c 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -151,7 +151,7 @@ CURLcode add_buffer_send(int sockfd, struct connectdata *conn, send_buffer *in,
break;
if(amount != size) {
- size += amount;
+ size -= amount;
ptr += amount;
}
else