Skip to content

Commit

Permalink
formdata: correct typecast in curl_mime_data call
Browse files Browse the repository at this point in the history
Coverity pointed out it the mismatch. CID 1486590

Closes #7327
  • Loading branch information
bagder committed Jun 30, 2021
1 parent 81cc2e4 commit e6caaa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/formdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
* you should have received as part of this distribution. The terms
Expand Down Expand Up @@ -894,7 +894,7 @@ CURLcode Curl_getformdata(struct Curl_easy *data,
result = curl_mime_data_cb(part, clen,
fread_func, NULL, NULL, post->userp);
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
/* Convert textual contents now. */
if(!result && data && part->datasize)
Expand Down

0 comments on commit e6caaa4

Please sign in to comment.