diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2003-08-12 00:58:52 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2003-08-12 00:58:52 +0000 |
| commit | 93bcd55eafbcf2a49e8963c3475d5a7b1fbc8c53 (patch) | |
| tree | 981e9591cd93532e591400b35b595735a6eee0b7 /ext/gd/libgd | |
| parent | 3652ab6032819e4854ae607fe8084cd129791983 (diff) | |
| download | php-git-93bcd55eafbcf2a49e8963c3475d5a7b1fbc8c53.tar.gz | |
emalloc -> safe_emalloc
Diffstat (limited to 'ext/gd/libgd')
| -rw-r--r-- | ext/gd/libgd/gd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/gd/libgd/gd.c b/ext/gd/libgd/gd.c index fcfd249f60..4598081f40 100644 --- a/ext/gd/libgd/gd.c +++ b/ext/gd/libgd/gd.c @@ -1873,7 +1873,7 @@ void gdImageFill(gdImagePtr im, int x, int y, int nc) oc = gdImageGetPixel(im, x, y); if (oc==nc || x<0 || x>wx2 || y<0 || y>wy2) return; - stack = (struct seg *)emalloc(sizeof(struct seg) * ((int)(im->sy*im->sx)/4)+1); + stack = (struct seg *)safe_emalloc(sizeof(struct seg), ((int)(im->sy*im->sx)/4), 1); sp = stack; /* required! */ @@ -1938,7 +1938,7 @@ void _gdImageFillTiled(gdImagePtr im, int x, int y, int nc) pts[i] = (int *) ecalloc(im->sx, sizeof(int)); } - stack = (struct seg *)emalloc(sizeof(struct seg) * ((int)(im->sy*im->sx)/4)+1); + stack = (struct seg *)safe_emalloc(sizeof(struct seg), ((int)(im->sy*im->sx)/4), 1); sp = stack; oc = gdImageGetPixel(im, x, y); |
