Commit 860de00459dd06c3758fdfc3db8bdd6978b6073c

Carlos Martín Nieto 2012-01-19T23:26:20

http: use PRIuZ MSVC doesn't think %zd is a valid specifier.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/transports/http.c b/src/transports/http.c
index 48ea78d..ce68ab7 100644
--- a/src/transports/http.c
+++ b/src/transports/http.c
@@ -71,7 +71,7 @@ static int gen_request(git_buf *buf, const char *url, const char *host, const ch
 	if (content_length > 0) {
 		git_buf_printf(buf, "Accept: application/x-git-%s-result\r\n", service);
 		git_buf_printf(buf, "Content-Type: application/x-git-%s-request\r\n", service);
-		git_buf_printf(buf, "Content-Length: %zd\r\n", content_length);
+		git_buf_printf(buf, "Content-Length: %" PRIuZ "\r\n", content_length);
 	} else {
 		git_buf_puts(buf, "Accept: */*\r\n");
 	}