]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
formdata: correct typecast in curl_mime_data call
authorDaniel Stenberg <daniel@haxx.se>
Wed, 30 Jun 2021 11:25:47 +0000 (13:25 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 30 Jun 2021 13:00:00 +0000 (15:00 +0200)
Coverity pointed out it the mismatch. CID 1486590

Closes #7327

lib/formdata.c

index 769f06a70596b1f5d101066f5371d467982dc386..f0e791a6c0b56505ec9e2a6f5802fc3ced44b1c6 100644 (file)
@@ -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
@@ -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)