From 6ac1d797afac1f2ec6e89594516a1e7ffe8cfe8a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 1 Jun 2008 22:25:20 +0000 Subject: fix stream URL Streaming was broken, beacuse the stream URL was never copied to path_max_fs. [ew: replaced strcpy with pathcpy_trunc for ease of auditing] git-svn-id: https://svn.musicpd.org/mpd/trunk@7371 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/decode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/decode.c b/src/decode.c index 5890d49d7..6b57239e3 100644 --- a/src/decode.c +++ b/src/decode.c @@ -220,7 +220,8 @@ static void decodeStart(void) if (!isRemoteUrl(path_max_utf8)) { rmp2amp_r(path_max_fs, utf8_to_fs_charset(path_max_fs, path_max_utf8)); - } + } else + pathcpy_trunc(path_max_fs, path_max_utf8); dc.current_song = pc.current_song; /* NEED LOCK */ if (openInputStream(&inStream, path_max_fs) < 0) { -- cgit v1.2.3