diff options
Diffstat (limited to 'apps/tree.c')
-rw-r--r-- | apps/tree.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/tree.c b/apps/tree.c index 0e56a2c177..f6b5176051 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -43,7 +43,7 @@ | |||
43 | #endif | 43 | #endif |
44 | 44 | ||
45 | #define MAX_FILES_IN_DIR 200 | 45 | #define MAX_FILES_IN_DIR 200 |
46 | #define TREE_MAX_FILENAMELEN 128 | 46 | #define TREE_MAX_FILENAMELEN MAX_PATH |
47 | #define MAX_DIR_LEVELS 10 | 47 | #define MAX_DIR_LEVELS 10 |
48 | 48 | ||
49 | struct entry { | 49 | struct entry { |
@@ -54,7 +54,7 @@ struct entry { | |||
54 | static struct entry dircache[MAX_FILES_IN_DIR]; | 54 | static struct entry dircache[MAX_FILES_IN_DIR]; |
55 | static struct entry* dircacheptr[MAX_FILES_IN_DIR]; | 55 | static struct entry* dircacheptr[MAX_FILES_IN_DIR]; |
56 | static int filesindir; | 56 | static int filesindir; |
57 | static char lastdir[256] = {0}; | 57 | static char lastdir[MAX_PATH] = {0}; |
58 | 58 | ||
59 | void browse_root(void) | 59 | void browse_root(void) |
60 | { | 60 | { |
@@ -201,12 +201,12 @@ static int dirpos[MAX_DIR_LEVELS]; | |||
201 | static int cursorpos[MAX_DIR_LEVELS]; | 201 | static int cursorpos[MAX_DIR_LEVELS]; |
202 | static int dirlevel=0; | 202 | static int dirlevel=0; |
203 | static int play_mode = 0; | 203 | static int play_mode = 0; |
204 | static char currdir[255]; | 204 | static char currdir[MAX_PATH]; |
205 | 205 | ||
206 | /* QUICK HACK! this should be handled by the playlist code later */ | 206 | /* QUICK HACK! this should be handled by the playlist code later */ |
207 | char* peek_next_track(int steps) | 207 | char* peek_next_track(int steps) |
208 | { | 208 | { |
209 | static char buf[256]; | 209 | static char buf[MAX_PATH]; |
210 | 210 | ||
211 | switch(play_mode) { | 211 | switch(play_mode) { |
212 | case 1: | 212 | case 1: |
@@ -253,7 +253,7 @@ char* peek_next_track(int steps) | |||
253 | 253 | ||
254 | bool dirbrowse(char *root) | 254 | bool dirbrowse(char *root) |
255 | { | 255 | { |
256 | char buf[255]; | 256 | char buf[MAX_PATH]; |
257 | int i; | 257 | int i; |
258 | int button; | 258 | int button; |
259 | int rc; | 259 | int rc; |