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/exec.c | |
parent | f77f977d0ea747686426360cc70466cc4a8b0876 (diff) | |
download | php-git-ed40ae2650b2ea8bf79a40cd12b552ecc0b49ccf.tar.gz |
emalloc -> safe_emalloc
Diffstat (limited to 'ext/standard/exec.c')
-rw-r--r-- | ext/standard/exec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/exec.c b/ext/standard/exec.c index eda62caf1c..671f6ffd14 100644 --- a/ext/standard/exec.c +++ b/ext/standard/exec.c @@ -263,7 +263,7 @@ char *php_escape_shell_cmd(char *str) { char *p = NULL; l = strlen(str); - cmd = emalloc(2 * l + 1); + cmd = safe_emalloc(2, l, 1); for (x = 0, y = 0; x < l; x++) { switch (str[x]) { @@ -320,7 +320,7 @@ char *php_escape_shell_arg(char *str) { y = 0; l = strlen(str); - cmd = emalloc(4 * l + 3); /* worst case */ + cmd = safe_emalloc(4, l, 3); /* worst case */ cmd[y++] = '\''; |