--- png.c.orig 2000-02-09 02:23:34.000000000 -0700 +++ png.c 2010-02-08 22:04:23.000000000 -0700 @@ -27,7 +27,7 @@ if (ret != 8) return 0; - ret = png_check_sig(buf, 8); + ret = !png_sig_cmp(buf, 0, 8); return (ret); }