ports/graphics/php52-gd/files/patch-libgd_gd_png.c
Dirk Meyer d111d16900 - PHP 5.2 slave port
PR:		145772
Submitted by:	Alex Keda
2010-04-23 15:53:34 +00:00

14 lines
330 B
C

--- 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;
}