mirror of
https://github.com/moparisthebest/curl
synced 2024-11-12 04:25:08 -05:00
url.c: Fixed compilation warning
conversion from 'curl_off_t' to 'size_t', possible loss of data
This commit is contained in:
parent
efe4bab29b
commit
e8cea8d70f
@ -368,7 +368,8 @@ CURLcode Curl_dupset(struct SessionHandle *dst, struct SessionHandle *src)
|
|||||||
i = STRING_COPYPOSTFIELDS;
|
i = STRING_COPYPOSTFIELDS;
|
||||||
if(src->set.postfieldsize && src->set.str[i]) {
|
if(src->set.postfieldsize && src->set.str[i]) {
|
||||||
/* postfieldsize is curl_off_t, Curl_memdup() takes a size_t ... */
|
/* postfieldsize is curl_off_t, Curl_memdup() takes a size_t ... */
|
||||||
dst->set.str[i] = Curl_memdup(src->set.str[i], src->set.postfieldsize);
|
dst->set.str[i] = Curl_memdup(src->set.str[i],
|
||||||
|
curlx_sotouz(src->set.postfieldsize));
|
||||||
if(!dst->set.str[i])
|
if(!dst->set.str[i])
|
||||||
return CURLE_OUT_OF_MEMORY;
|
return CURLE_OUT_OF_MEMORY;
|
||||||
/* point to the new copy */
|
/* point to the new copy */
|
||||||
|
Loading…
Reference in New Issue
Block a user