aboutsummaryrefslogtreecommitdiffstats
path: root/screen_file.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--screen_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/screen_file.c b/screen_file.c
index d83a1870c..34c4669de 100644
--- a/screen_file.c
+++ b/screen_file.c
@@ -40,7 +40,7 @@ list_callback(int index, int *highlight, void *data)
if( entity->type==MPD_INFO_ENTITY_TYPE_DIRECTORY )
{
mpd_Directory *dir = entity->info.directory;
- char *dirname = utf8_to_locale(dir->path);
+ char *dirname = utf8_to_locale(basename(dir->path));
strncpy(buf, dirname, BUFSIZE);
free(dirname);