cvs: php4(PHP_4_2_0) /sapi/isapi php4isapi.c

From: Date: Thu, 18 Apr 2002 22:52:21 +0000
Subject: cvs: php4(PHP_4_2_0) /sapi/isapi php4isapi.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-11208@lists.php.net to get a copy of this message
derick Thu Apr 18 18:52:21 2002 EDT Modified files: (Branch: PHP_4_2_0) /php4/sapi/isapi php4isapi.c Log: - MFH for bug in Sambar 5.2 Index: php4/sapi/isapi/php4isapi.c diff -u php4/sapi/isapi/php4isapi.c:1.88 php4/sapi/isapi/php4isapi.c:1.88.2.1 --- php4/sapi/isapi/php4isapi.c:1.88 Thu Feb 28 03:27:20 2002 +++ php4/sapi/isapi/php4isapi.c Thu Apr 18 18:52:20 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);

« previous php.cvs (#11208) next »