summaryrefslogtreecommitdiff
path: root/TSRM
diff options
context:
space:
mode:
authorStefan Esser <sesser@php.net>2005-01-15 18:19:49 (GMT)
committerStefan Esser <sesser@php.net>2005-01-15 18:19:49 (GMT)
commitf8787a67ed195593ee89722ae5e07684877e38c0 (patch)
tree15bc83573371aa319941b1dea3dd26b2659a1e3e /TSRM
parent2c25b9d86665d141ce62860ec708109944894a83 (diff)
downloadphp-f8787a67ed195593ee89722ae5e07684877e38c0.tar.gz
finally use what we calculated
Diffstat (limited to 'TSRM')
-rw-r--r--TSRM/tsrm_virtual_cwd.c2
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;
}