summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2006-11-05 15:04:50 +0000
committerPierre Joye <pajoye@php.net>2006-11-05 15:04:50 +0000
commit5784602544e97d1baa84f76130cd9547f46c70c2 (patch)
tree40e418976acb41bcf7c7e29d394f210680395dc7
parent79946dc8a056b5f2d2ececf5e7e1e869bed12c6f (diff)
downloadphp-git-5784602544e97d1baa84f76130cd9547f46c70c2.tar.gz
- Merge from gd-cvs, initialize the signature not the infile ctx
NB: good that we don't use getC :)
-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 4f4167a754..99b5cf96e1 100644
--- a/ext/gd/libgd/gd_png.c
+++ b/ext/gd/libgd/gd_png.c
@@ -126,7 +126,7 @@ gdImagePtr gdImageCreateFromPngCtx (gdIOCtx * infile)
/* Make sure the signature can't match by dumb luck -- TBB */
/* GRR: isn't sizeof(infile) equal to the size of the pointer? */
- memset (infile, 0, sizeof(infile));
+ memset (sig, 0, sizeof(sig));
/* first do a quick check that the file really is a PNG image; could
* have used slightly more general png_sig_cmp() function instead