diff options
author | Kalle Wallin <kaw@linux.se> | 2004-03-20 08:48:25 +0000 |
---|---|---|
committer | Kalle Wallin <kaw@linux.se> | 2004-03-20 08:48:25 +0000 |
commit | 5d3f55c855beed9b52fcc36da44e30c4c24c4a1b (patch) | |
tree | 316a7326dbedf97e9f20f040f62edc25056a2564 /screen_file.c | |
parent | 6c0042b0c87fe601b9ad606d4ee44305fc36d2cb (diff) | |
download | mpd-5d3f55c855beed9b52fcc36da44e30c4c24c4a1b.tar.gz mpd-5d3f55c855beed9b52fcc36da44e30c4c24c4a1b.tar.xz mpd-5d3f55c855beed9b52fcc36da44e30c4c24c4a1b.zip |
Reinserted lost basename() call.
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@324 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | screen_file.c | 2 |
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); |