aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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;