]> granicus.if.org Git - php/commitdiff
OMG, this line was really bogus (and allocating huge amounts of memory unecessarly)
authorNuno Lopes <nlopess@php.net>
Sat, 13 Jan 2007 11:21:21 +0000 (11:21 +0000)
committerNuno Lopes <nlopess@php.net>
Sat, 13 Jan 2007 11:21:21 +0000 (11:21 +0000)
ext/gd/libgd/gd.c

index 46395abbdd5b4f1ec2b73b12d38cdfd0c0d35ce0..9983454631f29e243aac0bd51412ff7f7f410244 100644 (file)
@@ -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));