summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 21aa78c74d..b86f606cc6 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -519,7 +519,7 @@ void set_current_file(char *path)
519 unsigned int i; 519 unsigned int i;
520 520
521 /* separate directory from filename */ 521 /* separate directory from filename */
522 name = strrchr(path,'/'); 522 name = strrchr(path+1,'/');
523 if (name) 523 if (name)
524 { 524 {
525 *name = 0; 525 *name = 0;