diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-07-15 22:58:28 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-07-15 22:58:28 +0000 |
commit | 377725fefe85e65f387508c2d18a4bcabba58e9c (patch) | |
tree | c80833bc7cb84619273e5f5a3a57ed1e5645f74a /firmware/common/dir.h | |
parent | 8c57ad9c38c174666a1482a84b7f6a023d397c29 (diff) | |
download | rockbox-377725fefe85e65f387508c2d18a4bcabba58e9c.tar.gz rockbox-377725fefe85e65f387508c2d18a4bcabba58e9c.zip |
Some more buffer length fixing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1361 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/common/dir.h')
-rw-r--r-- | firmware/common/dir.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/common/dir.h b/firmware/common/dir.h index f805013d2b..3cf36eb34f 100644 --- a/firmware/common/dir.h +++ b/firmware/common/dir.h | |||
@@ -20,6 +20,7 @@ | |||
20 | #define _DIR_H_ | 20 | #define _DIR_H_ |
21 | 21 | ||
22 | #include <stdbool.h> | 22 | #include <stdbool.h> |
23 | #include "file.h" | ||
23 | 24 | ||
24 | #ifndef DIRENT_DEFINED | 25 | #ifndef DIRENT_DEFINED |
25 | 26 | ||
@@ -31,7 +32,7 @@ | |||
31 | #define ATTR_ARCHIVE 0x20 | 32 | #define ATTR_ARCHIVE 0x20 |
32 | 33 | ||
33 | struct dirent { | 34 | struct dirent { |
34 | unsigned char d_name[256]; | 35 | unsigned char d_name[MAX_PATH]; |
35 | int attribute; | 36 | int attribute; |
36 | int size; | 37 | int size; |
37 | int startcluster; | 38 | int startcluster; |