From 8c57ad9c38c174666a1482a84b7f6a023d397c29 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Mon, 15 Jul 2002 22:46:38 +0000 Subject: Adjusted a few buffer sizes git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1360 a1c6a512-1295-4272-9138-f99709370657 --- apps/tree.c | 10 +++++----- 1 file 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 @@ #endif #define MAX_FILES_IN_DIR 200 -#define TREE_MAX_FILENAMELEN 128 +#define TREE_MAX_FILENAMELEN MAX_PATH #define MAX_DIR_LEVELS 10 struct entry { @@ -54,7 +54,7 @@ struct entry { static struct entry dircache[MAX_FILES_IN_DIR]; static struct entry* dircacheptr[MAX_FILES_IN_DIR]; static int filesindir; -static char lastdir[256] = {0}; +static char lastdir[MAX_PATH] = {0}; void browse_root(void) { @@ -201,12 +201,12 @@ static int dirpos[MAX_DIR_LEVELS]; static int cursorpos[MAX_DIR_LEVELS]; static int dirlevel=0; static int play_mode = 0; -static char currdir[255]; +static char currdir[MAX_PATH]; /* QUICK HACK! this should be handled by the playlist code later */ char* peek_next_track(int steps) { - static char buf[256]; + static char buf[MAX_PATH]; switch(play_mode) { case 1: @@ -253,7 +253,7 @@ char* peek_next_track(int steps) bool dirbrowse(char *root) { - char buf[255]; + char buf[MAX_PATH]; int i; int button; int rc; -- cgit v1.2.3