]> granicus.if.org Git - php/commitdiff
MFB
authorNuno Lopes <nlopess@php.net>
Sat, 13 Jan 2007 11:22:44 +0000 (11:22 +0000)
committerNuno Lopes <nlopess@php.net>
Sat, 13 Jan 2007 11:22:44 +0000 (11:22 +0000)
ext/gd/libgd/gd.c

index 27f73c4ebc4a16898be80d16d75ea5b552b02608..a52ed9f5cea12be71d57841ea720f29856310318 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));