- fix build for png-1.4.1

PR:		145112
This commit is contained in:
Dirk Meyer 2010-03-28 18:49:42 +00:00
parent 2c380c2237
commit cfb3d04b47
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=251651

View File

@ -0,0 +1,11 @@
--- src/pngimage.c.orig 2009-05-11 04:15:26.000000000 +0200
+++ src/pngimage.c 2010-03-28 19:46:33.000000000 +0200
@@ -148,7 +148,7 @@
rewind (png_file);
if (fread (sigbytes, 1, sizeof(sigbytes), png_file) !=
sizeof(sigbytes) ||
- (!png_check_sig (sigbytes, sizeof(sigbytes))))
+ (png_sig_cmp (sigbytes, 0, sizeof(sigbytes))))
return 0;
else
return 1;