commit | d55fa51d8c7cdd22b0fba295e2e0e4fc1ad3234f | [log] [tgz] |
---|---|---|
author | Nico Huber <nico.h@gmx.de> | Fri Jan 26 23:54:43 2024 +0100 |
committer | Nico Huber <nico.h@gmx.de> | Sun Jan 28 14:25:01 2024 +0100 |
tree | 9feaf4354890e4985b0ff0c756030c0cce3ccbed | |
parent | 3603eaa68ac81780850c8988294f0008f12cb6a3 [diff] |
main: Use `z' format modifier
diff --git a/src/main.c b/src/main.c index 5775196..91170e4 100644 --- a/src/main.c +++ b/src/main.c
@@ -112,7 +112,7 @@ for (size_t i = 0; i < (size_t)(read + 15) / 16 * 16; ++i) { if (i % 16 == 0) - printf("%06x: ", i); + printf("%06zx: ", i); else if (i % 8 == 0) printf(" "); if (i < read)