summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6c0042b)
raw | patch | inline | side by side (parent: 6c0042b)
author | Kalle Wallin <kaw@linux.se> | |
Sat, 20 Mar 2004 08:48:25 +0000 (08:48 +0000) | ||
committer | Kalle Wallin <kaw@linux.se> | |
Sat, 20 Mar 2004 08:48:25 +0000 (08:48 +0000) |
screen_file.c | patch | blob | history |
diff --git a/screen_file.c b/screen_file.c
index d83a1870c1735c180cbc349f3c246f2cfa644b27..34c4669de30ef87dad0691892cc3ba82e67e7976 100644 (file)
--- a/screen_file.c
+++ b/screen_file.c
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);