nlopess Sat Jan 13 11:21:21 2007 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/gd/libgd gd.c
Log:
OMG, this line was really bogus (and allocating huge amounts of memory
unecessarly)
http://cvs.php.net/viewvc.cgi/php-src/ext/gd/libgd/gd.c?r1=1.90.2.1.2.7&r2=1.90.2.1.2.8&diff_format=u
Index: php-src/ext/gd/libgd/gd.c
diff -u php-src/ext/gd/libgd/gd.c:1.90.2.1.2.7
php-src/ext/gd/libgd/gd.c:1.90.2.1.2.8
--- php-src/ext/gd/libgd/gd.c:1.90.2.1.2.7 Sat Jan 13 11:16:15 2007
+++ php-src/ext/gd/libgd/gd.c Sat Jan 13 11:21:21 2007
@@ -2014,7 +2014,7 @@
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));
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php