diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2010-01-24 17:12:15 +0100 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2010-01-24 17:12:15 +0100 |
commit | 7fc9af69c4a4c76670e6a0ec39864a585015aa8d (patch) | |
tree | 85b8ac8a7ef3f0830e61c246b56ba2ac8b7d7426 /src/song.cpp | |
parent | 359ce4fa9c5f475bae8997eba828d2faa7f3a409 (diff) |
fix escaping characters in MPD::Song::toString()
Diffstat (limited to 'src/song.cpp')
-rw-r--r-- | src/song.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/song.cpp b/src/song.cpp index fcb5bce3..f1f54ec2 100644 --- a/src/song.cpp +++ b/src/song.cpp @@ -429,7 +429,7 @@ std::string MPD::Song::ParseFormat(std::string::const_iterator &it, const char * if (escape_chars) // prepend format escape character to all given chars to escape for (const char *ch = escape_chars; *ch; ++ch) for (size_t i = 0; (i = tag.find(*ch, i)) != std::string::npos; i += 2) - tag.replace(i, 1, std::string(1, FormatEscapeCharacter) + ch); + tag.replace(i, 1, std::string(1, FormatEscapeCharacter) + *ch); if (!tag.empty() && (get != &MPD::Song::GetLength || GetTotalLength())) { has_some_tags = 1; |