diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-03-01 12:45:12 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-03-01 12:45:12 +0000 |
commit | 87e7f4f688d4a1fa601c59c56d0fe4055df806ba (patch) | |
tree | 6a400d956055a7c6ba097892b0a36e68e4194665 | |
parent | 5eeaff823506ab8a97801d3d7f9cf7f668681b58 (diff) |
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.
-rw-r--r-- | src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
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<size; i+= width) { - fprintf(stream, "%04x: ", i); + fprintf(stream, "%04zx: ", i); if(!nohex) { /* hex not disabled, show it */ |