farbfeld

suckless image format with conversion tools
git clone git://git.suckless.org/farbfeld
Log | Files | Refs | README | LICENSE

commit 3c79ee8c9bad9e08e8965832d8d930ff11d40cd6
parent 81c95f15f48184c031b3bc22985caf7d5a9272d7
Author: sin <sin@2f30.org>
Date:   Tue, 29 Jul 2014 12:41:15 +0100

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:
Mif2png.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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);