summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/tree.c10
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
49struct entry { 49struct entry {
@@ -54,7 +54,7 @@ struct entry {
54static struct entry dircache[MAX_FILES_IN_DIR]; 54static struct entry dircache[MAX_FILES_IN_DIR];
55static struct entry* dircacheptr[MAX_FILES_IN_DIR]; 55static struct entry* dircacheptr[MAX_FILES_IN_DIR];
56static int filesindir; 56static int filesindir;
57static char lastdir[256] = {0}; 57static char lastdir[MAX_PATH] = {0};
58 58
59void browse_root(void) 59void browse_root(void)
60{ 60{
@@ -201,12 +201,12 @@ static int dirpos[MAX_DIR_LEVELS];
201static int cursorpos[MAX_DIR_LEVELS]; 201static int cursorpos[MAX_DIR_LEVELS];
202static int dirlevel=0; 202static int dirlevel=0;
203static int play_mode = 0; 203static int play_mode = 0;
204static char currdir[255]; 204static 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 */
207char* peek_next_track(int steps) 207char* 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
254bool dirbrowse(char *root) 254bool 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;