diff options
| -rw-r--r-- | apps/tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/tree.c b/apps/tree.c index 21aa78c..b86f606 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -519,7 +519,7 @@ void set_current_file(char *path) unsigned int i; /* separate directory from filename */ - name = strrchr(path,'/'); + name = strrchr(path+1,'/'); if (name) { *name = 0; |