From 781aa0f579594d6a1fcc80daef5efff8fc095ee9 Mon Sep 17 00:00:00 2001 From: Marcus Overhagen Date: Sat, 29 Aug 2009 17:41:42 +0000 Subject: [PATCH] Fix bug introduced in r32679. The dirent buffer was to short. This fixes ticket #4362 and probably also #4360 and #4370 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32817 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/libroot/dirent_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headers/private/libroot/dirent_private.h b/headers/private/libroot/dirent_private.h index 5e39f7b994..23b51c68b9 100644 --- a/headers/private/libroot/dirent_private.h +++ b/headers/private/libroot/dirent_private.h @@ -10,7 +10,7 @@ #define DIR_BUFFER_SIZE 4096 -#define DIRENT_BUFFER_SIZE (DIR_BUFFER_SIZE - 2 * sizeof(int)) +#define DIRENT_BUFFER_SIZE (DIR_BUFFER_SIZE - offsetof(struct __DIR, first_entry)) struct __DIR { int fd;