summaryrefslogtreecommitdiff
path: root/graphics/php5-gd/files/patch-libgd_gd_png.c
blob: 95934bfc50892673e24a792fd068dee48c782286 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- libgd/gd_png.c.orig	2009-03-14 18:48:42.000000000 +0100
+++ libgd/gd_png.c	2010-04-05 19:54:05.000000000 +0200
@@ -139,7 +139,11 @@
 		return NULL;
 	}
 
+#if PNG_LIBPNG_VER >= 10400
+	if (png_sig_cmp (sig, 0, 8)) { /* bad signature */
+#else
 	if (!png_check_sig (sig, 8)) { /* bad signature */
+#endif
 		return NULL;
 	}