diff options
author | Stefan Esser <sesser@php.net> | 2005-01-15 18:19:49 (GMT) |
---|---|---|
committer | Stefan Esser <sesser@php.net> | 2005-01-15 18:19:49 (GMT) |
commit | f8787a67ed195593ee89722ae5e07684877e38c0 (patch) | |
tree | 15bc83573371aa319941b1dea3dd26b2659a1e3e /TSRM | |
parent | 2c25b9d86665d141ce62860ec708109944894a83 (diff) | |
download | php-f8787a67ed195593ee89722ae5e07684877e38c0.tar.gz |
finally use what we calculated
Diffstat (limited to 'TSRM')
-rw-r--r-- | TSRM/tsrm_virtual_cwd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/TSRM/tsrm_virtual_cwd.c b/TSRM/tsrm_virtual_cwd.c index 0df0566..6ad8101 100644 --- a/TSRM/tsrm_virtual_cwd.c +++ b/TSRM/tsrm_virtual_cwd.c @@ -986,7 +986,7 @@ CWD_API FILE *virtual_popen(const char *command, const char *type TSRMLS_DC) dir_length = CWDG(cwd).cwd_length; dir = CWDG(cwd).cwd; - ptr = command_line = (char *) malloc(command_length + sizeof("cd '' ; ") + dir_length +1+1); + ptr = command_line = (char *) malloc(command_length + sizeof("cd '' ; ") + dir_length + extra+1+1); if (!command_line) { return NULL; } |