From 5a07733504e9d8e4243caae23f9d43bce6ef0da6 Mon Sep 17 00:00:00 2001 From: Kalle Wallin Date: Mon, 22 Mar 2004 12:44:21 +0000 Subject: [PATCH] Restored lost basename call. git-svn-id: https://svn.musicpd.org/ncmpc/trunk@365 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- mpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpc.c b/mpc.c index 0b12e27..f48d83c 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; -- 2.30.2