diff options
author | John Hawthorn <john.hawthorn@gmail.com> | 2010-02-02 17:11:17 -0800 |
---|---|---|
committer | John Hawthorn <john.hawthorn@gmail.com> | 2010-02-02 17:11:17 -0800 |
commit | 7528c12ea495a781a62a0108e727a762e399f93f (patch) | |
tree | 61b7155247846d1355157a45ef3250809628c4ef /src | |
parent | f7bd697cdf90dd8725b1a7e815750c7192d9e44a (diff) | |
download | mirror-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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){ |