diff options
author | Pierre Joye <pajoye@php.net> | 2010-01-10 02:13:45 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2010-01-10 02:13:45 +0000 |
commit | 9d15e95575e94a67eca6a9d027955adb7ec7a6c7 (patch) | |
tree | afb88f92ef72f1b95dbfff28fc012429aafc80da | |
parent | b2fcc0587fe59e426d1f302288a5c9a0b6402fbc (diff) | |
download | php-git-9d15e95575e94a67eca6a9d027955adb7ec7a6c7.tar.gz |
- use png_sig_cmp to support libpng 1.4, old is deprecated already in older version
-rw-r--r-- | ext/gd/libgd/gd_png.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |