Commit 3c79ee8c authored by sin's avatar sin

Use %lu in case of an unexpected EOF or row-skew

We could use the macros from stdint.h but this should be good
parent 81c95f15
......@@ -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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment