summaryrefslogtreecommitdiff
path: root/sapi/isapi
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2002-04-18 22:51:23 +0000
committerDerick Rethans <derick@php.net>2002-04-18 22:51:23 +0000
commit68ca74c3710a5f2e38ddaa0c3f6631238d03eb60 (patch)
treeda0e470c5d7bb40f527b5d60889204d14fc02df9 /sapi/isapi
parent5ab179e83007c13c21aae79fd4b2fca90de771bf (diff)
downloadphp-git-68ca74c3710a5f2e38ddaa0c3f6631238d03eb60.tar.gz
- Gaurd for problems in fault servers (fixes problem with Sambar 5.2)
Diffstat (limited to 'sapi/isapi')
-rw-r--r--sapi/isapi/php4isapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/isapi/php4isapi.c b/sapi/isapi/php4isapi.c
index 9f30195345..55127da576 100644
--- a/sapi/isapi/php4isapi.c
+++ b/sapi/isapi/php4isapi.c
@@ -481,7 +481,7 @@ static void sapi_isapi_register_server_variables2(char **server_variables, LPEXT
recorded_values[p-server_variables] = estrndup(static_variable_buf, variable_len);
}
} else if (GetLastError() == ERROR_INSUFFICIENT_BUFFER) {
- variable_buf = (char *) emalloc(variable_len);
+ variable_buf = (char *) emalloc(variable_len+1);
if (lpECB->GetServerVariable(lpECB->ConnID, *p, variable_buf, &variable_len)
&& variable_buf[0]) {
php_register_variable(*p, variable_buf, track_vars_array TSRMLS_CC);