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…
x
Reference in New Issue
Block a user