- fix build for png-1.4.1

This commit is contained in:
Dirk Meyer 2010-03-29 19:44:23 +00:00
parent 1bdd4db87a
commit d42a343612
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=251756

View file

@ -0,0 +1,11 @@
--- src/FbTk/ImagePNG.cc.orig 2004-09-20 16:04:11.000000000 +0200
+++ src/FbTk/ImagePNG.cc 2010-03-29 21:44:37.000000000 +0200
@@ -88,7 +88,7 @@
// check header
unsigned char tag[4];
fread(tag, 1, 4, fp);
- if (!png_check_sig(tag, 4)) {
+ if (png_sig_cmp(tag, 0, 4)) {
fclose(fp);
return 0;
}