diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-04-25 00:16:10 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-05-01 22:55:29 +0200 |
commit | f535f4f5fc6cbdce1aec5a3481cec37369dca468 (patch) | |
tree | 918a8b9043e6933a7ceacb4ac32b153b2f84c54c /lib/easy.c | |
parent | 7c312f84ea930d89c0f0f774b50032c4f9ae30e4 (diff) | |
download | curl-f535f4f5fc6cbdce1aec5a3481cec37369dca468.tar.gz |
buffer_size: make sure it always has the correct size
Removes the need for CURL_BUFSIZE
Diffstat (limited to 'lib/easy.c')
-rw-r--r-- | lib/easy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/easy.c b/lib/easy.c index 5189d0794..531f18b43 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -870,7 +870,7 @@ struct Curl_easy *curl_easy_duphandle(struct Curl_easy *data) * the likeliness of us forgetting to init a buffer here in the future. */ outcurl->set.buffer_size = data->set.buffer_size; - outcurl->state.buffer = malloc(CURL_BUFSIZE(outcurl->set.buffer_size) + 1); + outcurl->state.buffer = malloc(outcurl->set.buffer_size + 1); if(!outcurl->state.buffer) goto fail; |