From: Pierre Joye Date: Wed, 3 Feb 2010 17:47:28 +0000 (+0000) Subject: - Merge: use png_sig_cmp to support libpng 1.4, old is deprecated already in older... X-Git-Tag: php-5.3.2RC2~91 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dc4fdaa86183bdca353a487fa5ca026cca53a71f;p=php - Merge: use png_sig_cmp to support libpng 1.4, old is deprecated already in older vers --- 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; }