summaryrefslogtreecommitdiff
path: root/main/fopen_wrappers.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 /main/fopen_wrappers.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 'main/fopen_wrappers.c')
-rw-r--r--main/fopen_wrappers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c
index 9f3ce6526c..ec8a623021 100644
--- a/main/fopen_wrappers.c
+++ b/main/fopen_wrappers.c
@@ -360,7 +360,7 @@ PHPAPI FILE *php_fopen_primary_script(void)
PHPAPI FILE *php_fopen_with_path(char *filename, char *mode, char *path, char **opened_path)
{
char *pathbuf, *ptr, *end;
- char trypath[MAXPATHLEN + 1];
+ char trypath[MAXPATHLEN];
struct stat sb;
FILE *fp;
int filename_length;
@@ -513,7 +513,7 @@ PHPAPI char *php_strip_url_passwd(char *url)
PHPAPI char *expand_filepath(const char *filepath, char *real_path)
{
cwd_state new_state;
- char cwd[MAXPATHLEN+1];
+ char cwd[MAXPATHLEN];
char *result;
result = V_GETCWD(cwd, MAXPATHLEN);