cvs: php4 /sapi/isapi php4isapi.c
| From: | Derick Rethans | Date: | Thu, 18 Apr 2002 22:51:25 +0000 |
| Subject: | cvs: php4 /sapi/isapi php4isapi.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-11206@lists.php.net to get a copy of this message | ||
derick Thu Apr 18 18:51:25 2002 EDT
Modified files:
/php4/sapi/isapi php4isapi.c
Log:
- Gaurd for problems in fault servers (fixes problem with Sambar 5.2)
Index: php4/sapi/isapi/php4isapi.c
diff -u php4/sapi/isapi/php4isapi.c:1.89 php4/sapi/isapi/php4isapi.c:1.90
--- php4/sapi/isapi/php4isapi.c:1.89 Tue Mar 19 14:15:40 2002
+++ php4/sapi/isapi/php4isapi.c Thu Apr 18 18:51:23 2002
@@ -481,7 +481,7 @@
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);