diff options
author | Pierre Joye <pajoye@php.net> | 2006-11-05 15:04:50 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2006-11-05 15:04:50 +0000 |
commit | 5784602544e97d1baa84f76130cd9547f46c70c2 (patch) | |
tree | 40e418976acb41bcf7c7e29d394f210680395dc7 | |
parent | 79946dc8a056b5f2d2ececf5e7e1e869bed12c6f (diff) | |
download | php-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.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 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 |