1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

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)
This commit is contained in:
Daniel Stenberg 2004-03-13 17:11:42 +00:00
parent 24cfa7f1bb
commit d04ffd258b

View File

@ -1623,7 +1623,7 @@ CURLcode Curl_http(struct connectdata *conn)
add_buffer(req_buffer, data->set.postfields, (size_t)postsize); add_buffer(req_buffer, data->set.postfields, (size_t)postsize);
else { else {
/* Append the POST data chunky-style */ /* 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, data->set.postfields, (size_t)postsize);
add_buffer(req_buffer, "\r\n0\r\n\r\n", 7); /* end of a chunked add_buffer(req_buffer, "\r\n0\r\n\r\n", 7); /* end of a chunked
transfer stream */ transfer stream */