diff options
-rw-r--r-- | ext/gd/libgd/gd.c | 2 |
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)); |