diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2003-08-11 23:16:54 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2003-08-11 23:16:54 +0000 |
commit | ed40ae2650b2ea8bf79a40cd12b552ecc0b49ccf (patch) | |
tree | 2f37aa775874babc16b82f5c19a3d39165c3accf /ext/standard/url.c | |
parent | f77f977d0ea747686426360cc70466cc4a8b0876 (diff) | |
download | php-git-ed40ae2650b2ea8bf79a40cd12b552ecc0b49ccf.tar.gz |
emalloc -> safe_emalloc
Diffstat (limited to 'ext/standard/url.c')
-rw-r--r-- | ext/standard/url.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/url.c b/ext/standard/url.c index 541530c074..3da9f66d94 100644 --- a/ext/standard/url.c +++ b/ext/standard/url.c @@ -369,7 +369,7 @@ PHPAPI char *php_url_encode(char *s, int len, int *new_length) from = s; end = s + len; - start = to = (unsigned char *) emalloc(3 * len + 1); + start = to = (unsigned char *) safe_emalloc(3, len, 1); while (from < end) { c = *from++; @@ -476,7 +476,7 @@ PHPAPI char *php_raw_url_encode(char *s, int len, int *new_length) register int x, y; unsigned char *str; - str = (unsigned char *) emalloc(3 * len + 1); + str = (unsigned char *) safe_emalloc(3, len, 1); for (x = 0, y = 0; len--; x++, y++) { str[y] = (unsigned char) s[x]; #ifndef CHARSET_EBCDIC |