From: Daniel Stenberg Date: Fri, 12 Mar 2004 13:06:01 +0000 (+0000) Subject: more variable type fixes for the large POST support X-Git-Tag: curl-7_11_1~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ad68ec305fa3ecf1bffacc24b67b7d24d187f51;p=thirdparty%2Fcurl.git more variable type fixes for the large POST support --- diff --git a/lib/http.c b/lib/http.c index ca99780421..a81a7bbf66 100644 --- a/lib/http.c +++ b/lib/http.c @@ -1620,11 +1620,11 @@ CURLcode Curl_http(struct connectdata *conn) if(!conn->bits.upload_chunky) /* We're not sending it 'chunked', append it to the request already now to reduce the number if send() calls */ - add_buffer(req_buffer, data->set.postfields, postsize); + add_buffer(req_buffer, data->set.postfields, (size_t)postsize); else { /* Append the POST data chunky-style */ add_bufferf(req_buffer, "%x\r\n", postsize); - add_buffer(req_buffer, data->set.postfields, postsize); + add_buffer(req_buffer, data->set.postfields, (size_t)postsize); add_buffer(req_buffer, "\r\n0\r\n\r\n", 7); /* end of a chunked transfer stream */ } diff --git a/lib/urldata.h b/lib/urldata.h index 1338c666e8..05c8d6ce7b 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -205,7 +205,7 @@ struct negotiatedata { ***************************************************************************/ struct HTTP { struct FormData *sendit; - size_t postsize; + curl_off_t postsize; /* off_t to handle large file sizes */ char *postdata; const char *p_pragma; /* Pragma: string */ @@ -221,7 +221,7 @@ struct HTTP { curl_read_callback fread; /* backup storage for fread pointer */ void *fread_in; /* backup storage for fread_in pointer */ char *postdata; - size_t postsize; + curl_off_t postsize; } backup; enum {