postsize is off_t now, so we typecase it to int before doing normal printf
authorDaniel Stenberg <daniel@haxx.se>
Sat, 13 Mar 2004 17:11:42 +0000 (17:11 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 13 Mar 2004 17:11:42 +0000 (17:11 +0000)
with it (knowing it won't be larger than what fits in an int)

lib/http.c

index 3aa5af34af3b9a6cacb37656692b2723d1f00928..812bbc787236a662b124ec7050b6e0a13cd8b935 100644 (file)
@@ -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 */