--- xli-1.17.0.orig/png.c
+++ xli-1.17/png.c
@@ -27,7 +27,7 @@
if (ret != 8)
return 0;
- ret = png_check_sig(buf, 8);
+ ret = png_sig_cmp(buf, 0, 8) == 0;
return (ret);
}