diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-03-12 14:22:16 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-03-12 14:22:16 +0000 |
commit | 94a1d09ac7500afdd6f3cef3fbfefa16072f2704 (patch) | |
tree | 4612e1d798f0138c1362409cd99c892884b17864 | |
parent | 230a75091b73273e265ffc57981bfff3fb2cab5a (diff) |
more variable type fixing for the huge posts
-rw-r--r-- | lib/formdata.c | 2 | ||||
-rw-r--r-- | lib/formdata.h | 2 | ||||
-rw-r--r-- | lib/http.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/formdata.c b/lib/formdata.c index ccb73fad0..58d1547af 100644 --- a/lib/formdata.c +++ b/lib/formdata.c @@ -1100,7 +1100,7 @@ void curl_formfree(struct curl_httppost *form) CURLcode Curl_getFormData(struct FormData **finalform, struct curl_httppost *post, - size_t *sizep) + curl_off_t *sizep) { struct FormData *form = NULL; struct FormData *firstform; diff --git a/lib/formdata.h b/lib/formdata.h index 6fdec9f13..df6ae3ac0 100644 --- a/lib/formdata.h +++ b/lib/formdata.h @@ -57,7 +57,7 @@ int Curl_FormInit(struct Form *form, struct FormData *formdata ); CURLcode Curl_getFormData(struct FormData **, struct curl_httppost *post, - size_t *size); + curl_off_t *size); /* fread() emulation */ size_t Curl_FormReader(char *buffer, diff --git a/lib/http.c b/lib/http.c index a81a7bbf6..19473d3f1 100644 --- a/lib/http.c +++ b/lib/http.c @@ -457,8 +457,8 @@ static size_t readmoredata(char *buffer, conn->bits.forbidchunk= (http->sending == HTTPSEND_REQUEST)?TRUE:FALSE; if(http->postsize <= fullsize) { - memcpy(buffer, http->postdata, http->postsize); - fullsize = http->postsize; + memcpy(buffer, http->postdata, (size_t)http->postsize); + fullsize = (size_t)http->postsize; if(http->backup.postsize) { /* move backup data into focus and continue on that */ |