aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Hawthorn <john.hawthorn@gmail.com>2010-02-02 17:11:17 -0800
committerJohn Hawthorn <john.hawthorn@gmail.com>2010-02-02 17:11:17 -0800
commit7528c12ea495a781a62a0108e727a762e399f93f (patch)
tree61b7155247846d1355157a45ef3250809628c4ef /src
parentf7bd697cdf90dd8725b1a7e815750c7192d9e44a (diff)
downloadmirror-meh-7528c12ea495a781a62a0108e727a762e399f93f.tar.gz
mirror-meh-7528c12ea495a781a62a0108e727a762e399f93f.tar.bz2
mirror-meh-7528c12ea495a781a62a0108e727a762e399f93f.zip
replace png_check_sig with png_sig_cmp. Fixes compilation with libpng 1.4. Patch from fogobogo
Diffstat (limited to 'src')
-rw-r--r--src/png.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/png.c b/src/png.c
index bab55e6..9dbe31e 100644
--- a/src/png.c
+++ b/src/png.c
@@ -17,7 +17,7 @@ static int ispng(FILE *f){
unsigned char buf[8];
if(fread(buf, 1, 8, f) != 8)
return 0;
- return png_check_sig(buf, 8);
+ return !png_sig_cmp(buf, 1, 8);
}
struct image *png_open(FILE *f){