Skip to content

Commit

Permalink
lib formdata FIXUP 2
Browse files Browse the repository at this point in the history
  • Loading branch information
vszakats committed Apr 27, 2024
1 parent fde6285 commit c0fd2a6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/formdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -896,9 +896,8 @@ CURLcode Curl_getformdata(struct Curl_easy *data,
result = curl_mime_filename(part, NULL);
}
else if(post->flags & HTTPPOST_BUFFER)
result = curl_mime_data(part, post->buffer,
post->bufferlength? (long)post->bufferlength:
-1);
result = curl_mime_data(part, post->buffer, (size_t)
(post->bufferlength? post->bufferlength: -1));
else if(post->flags & HTTPPOST_CALLBACK) {
/* the contents should be read with the callback and the size is set
with the contentslength */
Expand Down

0 comments on commit c0fd2a6

Please sign in to comment.