diff options
-rw-r--r-- | Userland/Libraries/LibC/dirent.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibC/dirent.cpp b/Userland/Libraries/LibC/dirent.cpp index 81e6329c16..f0f3fb1b78 100644 --- a/Userland/Libraries/LibC/dirent.cpp +++ b/Userland/Libraries/LibC/dirent.cpp @@ -57,11 +57,11 @@ void rewinddir(DIR* dirp) struct [[gnu::packed]] sys_dirent { ino_t ino; u8 file_type; - size_t namelen; + u32 namelen; char name[]; size_t total_size() { - return sizeof(ino_t) + sizeof(u8) + sizeof(size_t) + sizeof(char) * namelen; + return sizeof(ino_t) + sizeof(u8) + sizeof(u32) + sizeof(char) * namelen; } }; |