summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Esser <sesser@php.net>2005-01-15 18:19:49 +0000
committerStefan Esser <sesser@php.net>2005-01-15 18:19:49 +0000
commitf8787a67ed195593ee89722ae5e07684877e38c0 (patch)
tree15bc83573371aa319941b1dea3dd26b2659a1e3e
parent2c25b9d86665d141ce62860ec708109944894a83 (diff)
downloadphp-git-f8787a67ed195593ee89722ae5e07684877e38c0.tar.gz
finally use what we calculated
-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 0df0566238..6ad810113f 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;
}