mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
more variable type fixing for the huge posts
This commit is contained in:
parent
230a75091b
commit
94a1d09ac7
@ -1100,7 +1100,7 @@ void curl_formfree(struct curl_httppost *form)
|
|||||||
|
|
||||||
CURLcode Curl_getFormData(struct FormData **finalform,
|
CURLcode Curl_getFormData(struct FormData **finalform,
|
||||||
struct curl_httppost *post,
|
struct curl_httppost *post,
|
||||||
size_t *sizep)
|
curl_off_t *sizep)
|
||||||
{
|
{
|
||||||
struct FormData *form = NULL;
|
struct FormData *form = NULL;
|
||||||
struct FormData *firstform;
|
struct FormData *firstform;
|
||||||
|
@ -57,7 +57,7 @@ int Curl_FormInit(struct Form *form, struct FormData *formdata );
|
|||||||
CURLcode
|
CURLcode
|
||||||
Curl_getFormData(struct FormData **,
|
Curl_getFormData(struct FormData **,
|
||||||
struct curl_httppost *post,
|
struct curl_httppost *post,
|
||||||
size_t *size);
|
curl_off_t *size);
|
||||||
|
|
||||||
/* fread() emulation */
|
/* fread() emulation */
|
||||||
size_t Curl_FormReader(char *buffer,
|
size_t Curl_FormReader(char *buffer,
|
||||||
|
@ -457,8 +457,8 @@ static size_t readmoredata(char *buffer,
|
|||||||
conn->bits.forbidchunk= (http->sending == HTTPSEND_REQUEST)?TRUE:FALSE;
|
conn->bits.forbidchunk= (http->sending == HTTPSEND_REQUEST)?TRUE:FALSE;
|
||||||
|
|
||||||
if(http->postsize <= fullsize) {
|
if(http->postsize <= fullsize) {
|
||||||
memcpy(buffer, http->postdata, http->postsize);
|
memcpy(buffer, http->postdata, (size_t)http->postsize);
|
||||||
fullsize = http->postsize;
|
fullsize = (size_t)http->postsize;
|
||||||
|
|
||||||
if(http->backup.postsize) {
|
if(http->backup.postsize) {
|
||||||
/* move backup data into focus and continue on that */
|
/* move backup data into focus and continue on that */
|
||||||
|
Loading…
Reference in New Issue
Block a user