OMG, this line was really bogus (and allocating huge amounts of memory unecessarly)

This commit is contained in:
Nuno Lopes 2007-01-13 11:21:21 +00:00
parent e22c9cd775
commit 8815fdf5e0

View file

@ -2014,7 +2014,7 @@ void _gdImageFillTiled(gdImagePtr im, int x, int y, int nc)
tiled = nc==gdTiled; tiled = nc==gdTiled;
nc = gdImageTileGet(im,x,y); 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++) { for (i=0; i<im->sy;i++) {
pts[i] = (char *) ecalloc(im->sx, sizeof(char)); pts[i] = (char *) ecalloc(im->sx, sizeof(char));