mirror of
https://github.com/curl/curl.git
synced 2026-08-24 21:13:40 +03:00
formdata: correct typecast in curl_mime_data call
Coverity pointed out it the mismatch. CID 1486590 Closes #7327
This commit is contained in:
parent
81cc2e48da
commit
e6caaa41b0
1 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@
|
||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
|
|
@ -894,7 +894,7 @@ CURLcode Curl_getformdata(struct Curl_easy *data,
|
||||||
result = curl_mime_data_cb(part, clen,
|
result = curl_mime_data_cb(part, clen,
|
||||||
fread_func, NULL, NULL, post->userp);
|
fread_func, NULL, NULL, post->userp);
|
||||||
else {
|
else {
|
||||||
result = curl_mime_data(part, post->contents, (ssize_t) clen);
|
result = curl_mime_data(part, post->contents, (size_t) clen);
|
||||||
#ifdef CURL_DOES_CONVERSIONS
|
#ifdef CURL_DOES_CONVERSIONS
|
||||||
/* Convert textual contents now. */
|
/* Convert textual contents now. */
|
||||||
if(!result && data && part->datasize)
|
if(!result && data && part->datasize)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue