summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-08-17 17:13:40 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-08-17 17:13:40 +0200
commit72e981288b557794cd5c4c04941cdaacfbeba69a (patch)
tree5e0716a0de19f0b605fc1619221480cfafb8c1db
parent9fa51d9e8bd95988cae14eeff3a2fa4f1082637e (diff)
downloadcurl-bagder/alloc-upload-buffer-on-demand.tar.gz
fixup use upload buffer size for scratch area mallocbagder/alloc-upload-buffer-on-demand
-rw-r--r--lib/transfer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index 96d8ab48f..ab9094adc 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -992,7 +992,7 @@ static CURLcode readwrite_upload(struct Curl_easy *data,
(data->set.crlf))) {
/* Do we need to allocate a scratch buffer? */
if(!data->state.scratch) {
- data->state.scratch = malloc(2 * data->set.buffer_size);
+ data->state.scratch = malloc(2 * UPLOAD_BUFSIZE);
if(!data->state.scratch) {
failf(data, "Failed to alloc scratch buffer!");