farbfeld

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

commit fa9485966d31c071761f08e81f875535f9908ba3
parent 6520175e32edefc42a5825518b7504f168a6b218
Author: sin <sin@2f30.org>
Date:   Tue, 29 Jul 2014 12:22:03 +0100

If the match at the start of the header doesn't match say so explicitly

Diffstat:
Mif2png.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/if2png.c b/if2png.c @@ -43,7 +43,7 @@ main(int argc, char *argv[]) goto err; } if (memcmp("imagefile", hdr, 9)) { - fprintf(stderr, "invalid header\n"); + fprintf(stderr, "invalid magic in header\n"); goto err; } width = ntohl((hdr[9] << 0) | (hdr[10] << 8) | (hdr[11] << 16) | (hdr[12] << 24));