From: Nuno Lopes Date: Sat, 13 Jan 2007 11:21:21 +0000 (+0000) Subject: OMG, this line was really bogus (and allocating huge amounts of memory unecessarly) X-Git-Tag: php-5.2.1RC3~32 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8815fdf5e0536698488fe01b231c99bb321fae77;p=php OMG, this line was really bogus (and allocating huge amounts of memory unecessarly) --- 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; isy;i++) { pts[i] = (char *) ecalloc(im->sx, sizeof(char));