diff options
author | sin <sin@2f30.org> | 2014-07-29 12:41:15 +0100 |
---|---|---|
committer | sin <sin@2f30.org> | 2014-07-29 12:41:15 +0100 |
commit | 3c79ee8c9bad9e08e8965832d8d930ff11d40cd6 (patch) | |
tree | 1d663beca0943ba1e5b62050d3116e8f06eef981 /if2png.c | |
parent | 81c95f15f48184c031b3bc22985caf7d5a9272d7 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |