freebsd-ports/graphics/ming/files/patch-src_blocks_pngdbl.c
Dirk Meyer 8e575683fe - fix build for png-1.4.1
PR:		145115
2010-03-28 18:35:45 +00:00

20 lines
616 B
C

--- src/blocks/pngdbl.c.orig 2006-02-08 20:09:27.000000000 +0100
+++ src/blocks/pngdbl.c 2010-03-28 20:34:13.000000000 +0200
@@ -34,7 +34,7 @@
if(fread(header, 1, 8, fp) != 8)
return NULL;
- if(!png_check_sig(header, 8))
+ if(png_sig_cmp(header, 0, 8))
return NULL;
result = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
if(!result)
@@ -54,7 +54,7 @@
if(SWFInput_read(input, header, 8) != 8)
return NULL;
- if(!png_check_sig(header, 8))
+ if(png_sig_cmp(header, 0, 8))
return NULL;
result = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
if(!result)