summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2010-01-10 02:13:45 +0000
committerPierre Joye <pajoye@php.net>2010-01-10 02:13:45 +0000
commit9d15e95575e94a67eca6a9d027955adb7ec7a6c7 (patch)
treeafb88f92ef72f1b95dbfff28fc012429aafc80da
parentb2fcc0587fe59e426d1f302288a5c9a0b6402fbc (diff)
downloadphp-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.c2
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;
}