From 5d3f55c855beed9b52fcc36da44e30c4c24c4a1b Mon Sep 17 00:00:00 2001 From: Kalle Wallin Date: Sat, 20 Mar 2004 08:48:25 +0000 Subject: [PATCH] Reinserted lost basename() call. git-svn-id: https://svn.musicpd.org/ncmpc/trunk@324 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- screen_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screen_file.c b/screen_file.c index d83a187..34c4669 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); -- 2.30.2