diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/common/dir.c | 2 | ||||
-rw-r--r-- | firmware/common/dir.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/firmware/common/dir.c b/firmware/common/dir.c index 867cece953..473997bd37 100644 --- a/firmware/common/dir.c +++ b/firmware/common/dir.c | |||
@@ -30,7 +30,7 @@ static DIR opendirs[MAX_OPEN_DIRS]; | |||
30 | 30 | ||
31 | DIR* opendir(char* name) | 31 | DIR* opendir(char* name) |
32 | { | 32 | { |
33 | char namecopy[256]; | 33 | char namecopy[MAX_PATH]; |
34 | char* part; | 34 | char* part; |
35 | char* end; | 35 | char* end; |
36 | struct fat_direntry entry; | 36 | struct fat_direntry entry; |
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; |