mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
Fix compiler warning: integral size mismatch in argument
This commit is contained in:
parent
32195c673d
commit
e87c996fe0
@ -1059,7 +1059,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option,
|
||||
result = CURLE_OUT_OF_MEMORY;
|
||||
else {
|
||||
if(data->set.postfieldsize)
|
||||
memcpy(p, argptr, data->set.postfieldsize);
|
||||
memcpy(p, argptr, (size_t)data->set.postfieldsize);
|
||||
|
||||
data->set.str[STRING_COPYPOSTFIELDS] = p;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user