diff --git a/acinclude.m4 b/acinclude.m4 index 77fef369887..c10e1b8a3cc 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -57,7 +57,7 @@ AC_DEFUN(PHP_READDIR_R_TYPE,[ main() { DIR *dir; - char entry[sizeof(struct dirent)+PATH_MAX+1]; + char entry[sizeof(struct dirent)+PATH_MAX]; struct dirent *pentry = (struct dirent *) &entry; dir = opendir("/");