aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-03-22 12:44:21 +0000
committerKalle Wallin <kaw@linux.se>2004-03-22 12:44:21 +0000
commit5a07733504e9d8e4243caae23f9d43bce6ef0da6 (patch)
tree6c33689fd26176772ca63a223fdc23a7548cd846
parentd15752f082af7e941cc55f5f71ea5cff1a6b4653 (diff)
downloadmpd-5a07733504e9d8e4243caae23f9d43bce6ef0da6.tar.gz
mpd-5a07733504e9d8e4243caae23f9d43bce6ef0da6.tar.xz
mpd-5a07733504e9d8e4243caae23f9d43bce6ef0da6.zip
Restored lost basename call.
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@365 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--mpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpc.c b/mpc.c
index 0b12e27e1..f48d83cd7 100644
--- 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;