diff options
| author | Andi Gutmans <andi@php.net> | 2000-12-16 20:52:43 +0000 |
|---|---|---|
| committer | Andi Gutmans <andi@php.net> | 2000-12-16 20:52:43 +0000 |
| commit | 86a1cace276f827bd8261e624c4839b58ffc5f15 (patch) | |
| tree | 60527ca4b4148f6aa014a444aed491c53a4742ac /main/safe_mode.c | |
| parent | 93a93c242973f8152b24a2b2beab236220404bfa (diff) | |
| download | php-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.c | 2 |
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; |
