- fix build for png-1.4.1

This commit is contained in:
Dirk Meyer 2010-03-29 18:52:59 +00:00
parent 0f1a19d23e
commit 11c7de586d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=251751

View file

@ -0,0 +1,11 @@
--- common/im_png.cpp.orig 2000-09-16 19:18:01.000000000 +0200
+++ common/im_png.cpp 2010-03-29 20:47:19.000000000 +0200
@@ -34,7 +34,7 @@
return NULL;
fread(sig, 1, 8, f);
- if (!png_check_sig(sig, 8))
+ if (png_sig_cmp(sig, 0, 8))
{
fclose(f);
return NULL; // bad signature