From 7fc9af69c4a4c76670e6a0ec39864a585015aa8d Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sun, 24 Jan 2010 17:12:15 +0100 Subject: [PATCH] fix escaping characters in MPD::Song::toString() --- src/song.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;