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
This commit is contained in:
Max Kellermann 2008-06-01 22:25:20 +00:00 committed by Eric Wong
parent 56aab937d0
commit 6ac1d797af

View File

@ -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) {