From 1d385190a07007ec7c4f7a880ab16ef4fce88cf4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 20 Oct 2008 22:18:42 +0200 Subject: path: removed pathcpy_trunc() There was only one user of pathcpy_trunc(), which can be eliminated. --- src/decoder_thread.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/decoder_thread.c') diff --git a/src/decoder_thread.c b/src/decoder_thread.c index c8f19a33f..d6171a5fe 100644 --- a/src/decoder_thread.c +++ b/src/decoder_thread.c @@ -39,11 +39,8 @@ static void decodeStart(void) if (song_is_file(song)) map_song_fs(song, path_max_fs); - else { - char path_max_utf8[MPD_PATH_MAX]; - song_get_url(song, path_max_utf8); - pathcpy_trunc(path_max_fs, path_max_utf8); - } + else + song_get_url(song, path_max_fs); dc.current_song = dc.next_song; /* NEED LOCK */ if (openInputStream(&inStream, path_max_fs) < 0) { -- cgit v1.2.3