From 7a54e0b10c953339d32e8a9379e6888cadb67c8e Mon Sep 17 00:00:00 2001 From: foobar Date: Wed, 18 Oct 2000 14:14:14 +0000 Subject: Fixed crash (bus error) in readdir() and session cleanup when compiled with Sun CC. --- ext/session/mod_files.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/session/mod_files.c') diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index 8abc31721d..3083bdea66 100644 --- a/ext/session/mod_files.c +++ b/ext/session/mod_files.c @@ -156,7 +156,7 @@ static void ps_files_open(ps_files *data, const char *key) static int ps_files_cleanup_dir(const char *dirname, int maxlifetime) { DIR *dir; - char dentry[sizeof(struct dirent) + MAXPATHLEN + 1]; + char dentry[sizeof(struct dirent) + MAXPATHLEN]; struct dirent *entry = (struct dirent *) &dentry; struct stat sbuf; char buf[MAXPATHLEN]; -- cgit v1.2.1