Code

Reinserted lost basename() call.
authorKalle Wallin <kaw@linux.se>
Sat, 20 Mar 2004 08:48:25 +0000 (08:48 +0000)
committerKalle Wallin <kaw@linux.se>
Sat, 20 Mar 2004 08:48:25 +0000 (08:48 +0000)
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@324 09075e82-0dd4-0310-85a5-a0d7c8717e4f

screen_file.c

index d83a1870c1735c180cbc349f3c246f2cfa644b27..34c4669de30ef87dad0691892cc3ba82e67e7976 100644 (file)
@@ -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);