- fix build for png-1.4.1

This commit is contained in:
Dirk Meyer 2010-03-29 11:18:09 +00:00
parent 7357834e32
commit 0ea22a27cf
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=251714

View File

@ -0,0 +1,20 @@
--- images.c.orig 2004-04-13 02:46:24.000000000 +0200
+++ images.c 2010-03-29 12:55:47.000000000 +0200
@@ -854,7 +854,7 @@
// Check that it really is a PNG file
fread (sig, 1, 8, image);
- if (!png_check_sig (sig, 8))
+ if (png_sig_cmp (sig, 0, 8))
panda_error (panda_true, "PNG file was invalid");
// Start decompressing
@@ -1411,7 +1411,7 @@
// Check that it really is a PNG file
fread (sig, 1, 8, image);
- if (!png_check_sig (sig, 8))
+ if (png_sig_cmp (sig, 0, 8))
panda_error (panda_true, "PNG file was invalid");
// Start decompressing