summaryrefslogtreecommitdiff
path: root/src/gd_png.c
diff options
context:
space:
mode:
authorpajoye <none@none>2006-11-05 15:01:47 +0000
committerpajoye <none@none>2006-11-05 15:01:47 +0000
commitbba046b3a2d67b2adb5cf1d131bd04fcd59f889e (patch)
treea70d03a35db1e6dba3e091824398fff768c067ff /src/gd_png.c
parent3152082bdbefdea7676ed1752ee3162fb121103c (diff)
downloadlibgd-bba046b3a2d67b2adb5cf1d131bd04fcd59f889e.tar.gz
- #12, initialize the sig buf not infile, good that we don't use getC...
Diffstat (limited to 'src/gd_png.c')
-rw-r--r--src/gd_png.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gd_png.c b/src/gd_png.c
index 8d2fb81..4a957fd 100644
--- a/src/gd_png.c
+++ b/src/gd_png.c
@@ -139,7 +139,7 @@ BGD_DECLARE(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 */