From 87e7f4f688d4a1fa601c59c56d0fe4055df806ba Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 1 Mar 2004 12:45:12 +0000 Subject: 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. --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main.c b/src/main.c index bda7f2b19..ffe6ba854 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