aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-06-01 22:25:20 +0000
committerEric Wong <normalperson@yhbt.net>2008-06-01 22:25:20 +0000
commit6ac1d797afac1f2ec6e89594516a1e7ffe8cfe8a (patch)
tree5f56fa17508384b9f308573bd71c3f7f94e59f13 /src
parent56aab937d09f39ff42f67b7a6e7776f35cc2a4d4 (diff)
downloadmpd-6ac1d797afac1f2ec6e89594516a1e7ffe8cfe8a.tar.gz
mpd-6ac1d797afac1f2ec6e89594516a1e7ffe8cfe8a.tar.xz
mpd-6ac1d797afac1f2ec6e89594516a1e7ffe8cfe8a.zip
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
Diffstat (limited to '')
-rw-r--r--src/decode.c3
1 files changed, 2 insertions, 1 deletions
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) {