aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Sobolev <konstantin.sobolev@gmail.com>2008-11-20 18:10:18 +0100
committerMax Kellermann <mk@cm4all.com>2008-11-20 18:10:18 +0100
commit23b097593ee7b9ec30c15fd6f6c750850a7b5b5a (patch)
tree5952200445f08b1273d0c6cd3adb22b7f50da520
parentddab531b4a1a11660e9db17df5e1accdf7da6f01 (diff)
downloadmpd-23b097593ee7b9ec30c15fd6f6c750850a7b5b5a.tar.gz
mpd-23b097593ee7b9ec30c15fd6f6c750850a7b5b5a.tar.xz
mpd-23b097593ee7b9ec30c15fd6f6c750850a7b5b5a.zip
mapper: use the utf8_to_fs_charset() result
In map_directory_child_fs(), the result of utf8_to_fs_charset() was never used, because it passed the unmodified "name" parameter to pfx_dir().
Diffstat (limited to '')
-rw-r--r--src/mapper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapper.c b/src/mapper.c
index 4510241dc..6317c2f77 100644
--- a/src/mapper.c
+++ b/src/mapper.c
@@ -109,7 +109,7 @@ map_directory_child_fs(const struct directory *directory, const char *name,
if (parent_fs == NULL)
return NULL;
- utf8_to_fs_charset(buffer, name);
+ name = utf8_to_fs_charset(buffer, name);
pfx_dir(buffer, name, strlen(name),
parent_fs, strlen(parent_fs));
return buffer;