diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-03-12 12:07:01 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-03-12 12:07:01 +0000 |
commit | ef776ab8937a1711e98fc3a56396fd8b75d9bb51 (patch) | |
tree | 03f8c8df5631cc84596c301bc17916978a660301 /lib/http.c | |
parent | f8ff0f6befc92288a83b109ef3a61d82d48f3140 (diff) |
Made the 'postsize' variable an off_t type to be able to hold large file
sizes if desired
Diffstat (limited to 'lib/http.c')
-rw-r--r-- | lib/http.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/http.c b/lib/http.c index 9377d1ea1..ca9978042 100644 --- a/lib/http.c +++ b/lib/http.c @@ -1333,7 +1333,7 @@ CURLcode Curl_http(struct connectdata *conn) send_buffer *req_buffer; struct curl_slist *headers=data->set.headers; - size_t postsize; + curl_off_t postsize; /* off_t type to be able to hold a large file size */ /* initialize a dynamic send-buffer */ req_buffer = add_buffer_init(); @@ -1596,7 +1596,8 @@ CURLcode Curl_http(struct connectdata *conn) if(!checkheaders(data, "Content-Length:")) /* we allow replacing this header, although it isn't very wise to actually set your own */ - add_bufferf(req_buffer, "Content-Length: %d\r\n", postsize); + add_bufferf(req_buffer, "Content-Length: %" FORMAT_OFF_T"\r\n", + postsize); } if(!checkheaders(data, "Content-Type:")) |