diff options
author | Max Kellermann <max@duempel.org> | 2008-10-20 22:18:42 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-20 22:18:42 +0200 |
commit | 1d385190a07007ec7c4f7a880ab16ef4fce88cf4 (patch) | |
tree | 6a29a2dd7ef62cbb8b9b19f6e228143d91a6c5a5 /src/decoder_thread.c | |
parent | 49260e6db20aa865e485a02fae5c0249d1df0d8a (diff) | |
download | mpd-1d385190a07007ec7c4f7a880ab16ef4fce88cf4.tar.gz mpd-1d385190a07007ec7c4f7a880ab16ef4fce88cf4.tar.xz mpd-1d385190a07007ec7c4f7a880ab16ef4fce88cf4.zip |
path: removed pathcpy_trunc()
There was only one user of pathcpy_trunc(), which can be eliminated.
Diffstat (limited to '')
-rw-r--r-- | src/decoder_thread.c | 7 |
1 files changed, 2 insertions, 5 deletions
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) { |