summaryrefslogtreecommitdiff
path: root/sapi/phttpd/phttpd.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-12-16 20:52:43 +0000
committerAndi Gutmans <andi@php.net>2000-12-16 20:52:43 +0000
commit86a1cace276f827bd8261e624c4839b58ffc5f15 (patch)
tree60527ca4b4148f6aa014a444aed491c53a4742ac /sapi/phttpd/phttpd.c
parent93a93c242973f8152b24a2b2beab236220404bfa (diff)
downloadphp-git-86a1cace276f827bd8261e624c4839b58ffc5f15.tar.gz
- Make all places use MAXPATHLEN in the same way. It includes the
terminating NULL.
Diffstat (limited to 'sapi/phttpd/phttpd.c')
-rw-r--r--sapi/phttpd/phttpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/phttpd/phttpd.c b/sapi/phttpd/phttpd.c
index 825fd2a3b5..a7abe61088 100644
--- a/sapi/phttpd/phttpd.c
+++ b/sapi/phttpd/phttpd.c
@@ -203,7 +203,7 @@ php_phttpd_request_ctor(PHLS_D SLS_DC)
SG(request_info).query_string = PHG(cip)->hip->request;
SG(request_info).request_method = PHG(cip)->hip->method;
- SG(request_info).path_translated = malloc(MAXPATHLEN+1);
+ SG(request_info).path_translated = malloc(MAXPATHLEN);
SG(sapi_headers).http_response_code = 200;
if (url_expand(PHG(cip)->hip->url, SG(request_info).path_translated, MAXPATHLEN, &PHG(sb), NULL, NULL) == NULL) {
/* handle error */