From 8815fdf5e0536698488fe01b231c99bb321fae77 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Sat, 13 Jan 2007 11:21:21 +0000 Subject: [PATCH] OMG, this line was really bogus (and allocating huge amounts of memory unecessarly) --- ext/gd/libgd/gd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.50.1