From d04ffd258b9f48b2d65bbe6ad3daa89cb0b0aca5 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 13 Mar 2004 17:11:42 +0000 Subject: 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) --- lib/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- cgit v1.2.3