From 86a1cace276f827bd8261e624c4839b58ffc5f15 Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Sat, 16 Dec 2000 20:52:43 +0000 Subject: - Make all places use MAXPATHLEN in the same way. It includes the terminating NULL. --- main/safe_mode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/safe_mode.c') 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; -- cgit v1.2.1