summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNuno Lopes <nlopess@php.net>2007-01-13 11:21:21 +0000
committerNuno Lopes <nlopess@php.net>2007-01-13 11:21:21 +0000
commit8815fdf5e0536698488fe01b231c99bb321fae77 (patch)
tree1c51fdc7d2a7f2fd3daba9929b0b3f5fa4266523
parente22c9cd775465fe8be8c746d61746ad6bcea11ad (diff)
downloadphp-git-8815fdf5e0536698488fe01b231c99bb321fae77.tar.gz
OMG, this line was really bogus (and allocating huge amounts of memory unecessarly)
-rw-r--r--ext/gd/libgd/gd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/gd/libgd/gd.c b/ext/gd/libgd/gd.c
index 46395abbdd..9983454631 100644
--- a/ext/gd/libgd/gd.c
+++ b/ext/gd/libgd/gd.c
@@ -2014,7 +2014,7 @@ void _gdImageFillTiled(gdImagePtr im, int x, int y, int nc)
tiled = nc==gdTiled;
nc = gdImageTileGet(im,x,y);
- pts = (char **) ecalloc(sizeof(char *) * im->sy, sizeof(char));
+ pts = (char **) ecalloc(im->sy, sizeof(char*));
for (i=0; i<im->sy;i++) {
pts[i] = (char *) ecalloc(im->sx, sizeof(char));