From 24cfa7f1bb147f706680f7eddca9805a3b1de015 Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Sat, 13 Mar 2004 17:03:17 +0000
Subject: [PATCH] the postsize is an off_t so use the proper printf format to
 output the content-length when doing multipart posts

---
 lib/http.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/http.c b/lib/http.c
index 19473d3f19..3aa5af34af 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -1487,7 +1487,7 @@ CURLcode Curl_http(struct connectdata *conn)
       if(!conn->bits.upload_chunky)
         /* only add Content-Length if not uploading chunked */
         add_bufferf(req_buffer,
-                    "Content-Length: %d\r\n", http->postsize);
+                    "Content-Length: %" FORMAT_OFF_T "\r\n", http->postsize);
 
       if(!checkheaders(data, "Expect:")) {
         /* if not disabled explicitly we add a Expect: 100-continue
-- 
GitLab