freebsd-ports/games/gtkatlantic/files/patch-readpng.c
Max Brazhnikov 55d514a2e4 Update to 0.4.3
PR:		ports/150661
Submitted by:	KATO Tsuguru <tkato432 at yahoo.com>
2010-09-18 15:57:24 +00:00

11 lines
372 B
C

--- src/readpng.c.orig 2010-04-18 11:36:49.000000000 +0900
+++ src/readpng.c 2010-09-14 03:27:35.000000000 +0900
@@ -33,7 +33,7 @@
png_uint_32 width, height;
fread(sig, 1, 8, infile);
- if (!png_check_sig((png_bytep)sig, 8))
+ if (png_sig_cmp((png_bytep)sig, 0, 8))
return FALSE;
*png_struct = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);