From: Daniel Stenberg Date: Mon, 1 Mar 2004 12:45:12 +0000 (+0000) Subject: Use the z-option to printf %d for size_t printf. z is supported by the X-Git-Tag: curl-7_11_1~172 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87e7f4f688d4a1fa601c59c56d0fe4055df806ba;p=thirdparty%2Fcurl.git Use the z-option to printf %d for size_t printf. z is supported by the libcurl *printf and by Linux printf(). This should make the code work nicely even for 64bit size_ts. --- diff --git a/src/main.c b/src/main.c index bda7f2b198..ffe6ba8548 100644 --- a/src/main.c +++ b/src/main.c @@ -2427,11 +2427,11 @@ void dump(const char *text, /* without the hex output, we can fit more on screen */ width = 0x40; - fprintf(stream, "%s, %d bytes (0x%x)\n", text, size, size); + fprintf(stream, "%s, %zd bytes (0x%zx)\n", text, size, size); for(i=0; i