summaryrefslogtreecommitdiff
path: root/firmware/common
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-07-15 22:58:28 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-07-15 22:58:28 +0000
commit377725fefe85e65f387508c2d18a4bcabba58e9c (patch)
treec80833bc7cb84619273e5f5a3a57ed1e5645f74a /firmware/common
parent8c57ad9c38c174666a1482a84b7f6a023d397c29 (diff)
downloadrockbox-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')
-rw-r--r--firmware/common/dir.c2
-rw-r--r--firmware/common/dir.h3
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
31DIR* opendir(char* name) 31DIR* 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
33struct dirent { 34struct 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;