- fix build for png-1.4.1
This commit is contained in:
parent
1bdd4db87a
commit
d42a343612
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=251756
1 changed files with 11 additions and 0 deletions
11
x11/fbdesk/files/patch-ImagePNG.cc
Normal file
11
x11/fbdesk/files/patch-ImagePNG.cc
Normal 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;
|
||||
}
|
Loading…
Reference in a new issue