cvs: php-src(PHP_5_2) /ext/gd/libgd gd.c
| From: | Nuno Lopes | Date: | Sat, 13 Jan 2007 11:21:21 +0000 |
| Subject: | cvs: php-src(PHP_5_2) /ext/gd/libgd gd.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-42712@lists.php.net to get a copy of this message | ||
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));