summaryrefslogtreecommitdiff
path: root/if2png.c
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-07-29 12:41:15 +0100
committersin <sin@2f30.org>2014-07-29 12:41:15 +0100
commit3c79ee8c9bad9e08e8965832d8d930ff11d40cd6 (patch)
tree1d663beca0943ba1e5b62050d3116e8f06eef981 /if2png.c
parent81c95f15f48184c031b3bc22985caf7d5a9272d7 (diff)
Use %lu in case of an unexpected EOF or row-skew
We could use the macros from stdint.h but this should be good enough.
Diffstat (limited to 'if2png.c')
-rw-r--r--if2png.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/if2png.c b/if2png.c
index b52a516..c3b8901 100644
--- a/if2png.c
+++ b/if2png.c
@@ -70,9 +70,9 @@ main(int argc, char *argv[])
goto err;
}
- for (i=0; i < height; ++i) {
+ for (i = 0; i < height; ++i) {
if (fread(png_row, 1, png_row_len, stdin) != png_row_len) {
- fprintf(stderr, "unexpected EOF or row-skew at %d\n", i);
+ fprintf(stderr, "unexpected EOF or row-skew at %lu\n", (unsigned long)i);
goto err;
}
png_write_row(png_struct_p, png_row);