From: Kalle Wallin Date: Sat, 20 Mar 2004 08:48:25 +0000 (+0000) Subject: Reinserted lost basename() call. X-Git-Tag: v0.12_alpha1~683 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5d3f55c855beed9b52fcc36da44e30c4c24c4a1b;p=ncmpc.git Reinserted lost basename() call. git-svn-id: https://svn.musicpd.org/ncmpc/trunk@324 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- 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);