diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-03-13 17:11:42 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-03-13 17:11:42 +0000 |
commit | d04ffd258b9f48b2d65bbe6ad3daa89cb0b0aca5 (patch) | |
tree | 51558043b70c138a1a355e09126ab131da7a392f /lib | |
parent | 24cfa7f1bb147f706680f7eddca9805a3b1de015 (diff) |
postsize is off_t now, so we typecase it to int before doing normal printf
with it (knowing it won't be larger than what fits in an int)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http.c b/lib/http.c index 3aa5af34a..812bbc787 100644 --- a/lib/http.c +++ b/lib/http.c @@ -1623,7 +1623,7 @@ CURLcode Curl_http(struct connectdata *conn) 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_bufferf(req_buffer, "%x\r\n", (int)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 */ |