aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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){