Code

Restored lost basename call.
authorKalle Wallin <kaw@linux.se>
Mon, 22 Mar 2004 12:44:21 +0000 (12:44 +0000)
committerKalle Wallin <kaw@linux.se>
Mon, 22 Mar 2004 12:44:21 +0000 (12:44 +0000)
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@365 09075e82-0dd4-0310-85a5-a0d7c8717e4f

mpc.c

diff --git a/mpc.c b/mpc.c
index 0b12e27e14ed8b64e0a94234e620c3b92725f2da..f48d83cd7d904051281fffde5e85e351312b8fb8 100644 (file)
--- a/mpc.c
+++ b/mpc.c
@@ -239,7 +239,7 @@ mpc_get_song_name(mpd_Song *song)
          return buf;
        }
     }
-  name = utf8_to_locale(song->file);
+  name = utf8_to_locale(basename(song->file));
   strncpy(buf, name, MAX_SONG_LENGTH);
   free(name);
   return buf;