summaryrefslogtreecommitdiff
path: root/main/safe_mode.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/safe_mode.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/safe_mode.c')
-rw-r--r--main/safe_mode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/safe_mode.c b/main/safe_mode.c
index 1a11decc69..d8ae18fa12 100644
--- a/main/safe_mode.c
+++ b/main/safe_mode.c
@@ -106,7 +106,7 @@ PHPAPI int php_checkuid(const char *filename, char *fopen_mode, int mode)
}
duid = sb.st_uid;
} else {
- char cwd[MAXPATHLEN+1];
+ char cwd[MAXPATHLEN];
if (!V_GETCWD(cwd, MAXPATHLEN)) {
php_error(E_WARNING, "Unable to access current working directory");
return 0;