From dc4fdaa86183bdca353a487fa5ca026cca53a71f Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Wed, 3 Feb 2010 17:47:28 +0000 Subject: [PATCH] - Merge: use png_sig_cmp to support libpng 1.4, old is deprecated already in older vers --- 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 da5a32f682..52a087e787 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