diff options
author | Daniel Stenberg <daniel@haxx.se> | 2022-07-04 19:41:52 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-07-04 23:03:44 +0200 |
commit | 3fa343a35c9d65ebbcad5d028bbd6f14cde1af00 (patch) | |
tree | 374e0fa291517f011fc07bae2a3d3d3beae0b72c /lib/setopt.c | |
parent | cb17b12b017af8dbeed9664b15ceb85391ac71a9 (diff) | |
download | curl-3fa343a35c9d65ebbcad5d028bbd6f14cde1af00.tar.gz |
urldata: make 'buffer_size' an unsigned int
It is already capped at READBUFFER_MAX which fits easily in 32 bits.
Closes #9098
Diffstat (limited to 'lib/setopt.c')
-rw-r--r-- | lib/setopt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/setopt.c b/lib/setopt.c index bb0e700fb..ba36b495c 100644 --- a/lib/setopt.c +++ b/lib/setopt.c @@ -2238,7 +2238,7 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param) else if(arg < READBUFFER_MIN) arg = READBUFFER_MIN; - data->set.buffer_size = arg; + data->set.buffer_size = (int)arg; break; case CURLOPT_UPLOAD_BUFFERSIZE: |