Skip to content

Commit 8815fdf

Browse files
committed
OMG, this line was really bogus (and allocating huge amounts of memory unecessarly)
1 parent e22c9cd commit 8815fdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/gd/libgd/gd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2014,7 +2014,7 @@ void _gdImageFillTiled(gdImagePtr im, int x, int y, int nc)
20142014
tiled = nc==gdTiled;
20152015

20162016
nc = gdImageTileGet(im,x,y);
2017-
pts = (char **) ecalloc(sizeof(char *) * im->sy, sizeof(char));
2017+
pts = (char **) ecalloc(im->sy, sizeof(char*));
20182018

20192019
for (i=0; i<im->sy;i++) {
20202020
pts[i] = (char *) ecalloc(im->sx, sizeof(char));

0 commit comments

Comments
 (0)