summaryrefslogtreecommitdiff
blob: 90f015f0f55fdc9a8a2c75e0e61ad8a7d42982fb (plain)
1
2
3
4
5
6
7
8
9
10
11
--- ext/gd/libgd/gd_png.c
+++ ext/gd/libgd/gd_png.c
@@ -139,7 +139,7 @@
 		return NULL;
 	}
 
-	if (!png_check_sig (sig, 8)) { /* bad signature */
+	if (png_sig_cmp (sig, 0, 8)) { /* bad signature */
 		return NULL;
 	}