From 9d15e95575e94a67eca6a9d027955adb7ec7a6c7 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Sun, 10 Jan 2010 02:13:45 +0000 Subject: [PATCH] - use png_sig_cmp to support libpng 1.4, old is deprecated already in older version --- ext/gd/libgd/gd_png.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/gd/libgd/gd_png.c b/ext/gd/libgd/gd_png.c index 6eff1b1dbe..7959883c04 100644 --- a/ext/gd/libgd/gd_png.c +++ b/ext/gd/libgd/gd_png.c @@ -145,7 +145,7 @@ gdImagePtr gdImageCreateFromPngCtx (gdIOCtx * infile) return NULL; } - if (!png_check_sig (sig, 8)) { /* bad signature */ + if (png_sig_cmp(sig, 0, 8) != 0) { /* bad signature */ return NULL; } -- 2.50.1