]> git.donarmstrong.com Git - lilypond.git/commit
Fix possible endless loop in replace_all
authorReinhold Kainhofer <reinhold@kainhofer.com>
Fri, 21 Aug 2009 22:04:28 +0000 (00:04 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Fri, 21 Aug 2009 22:10:37 +0000 (00:10 +0200)
commit8c75c6e62e5e11b54e5585c7a4d1329f9212b1d4
treea1ce3164df59575a783fec5efd51f21f0d987e2a
parentcad8bec93311f8cbcc0b420fb5c93c0311df8979
Fix possible endless loop in replace_all

Inside replace all, start the search for the next appearance from the
end position of the replacement, not from the end of the occurrence.
Otherwise, replace_all (&str, "\"", "\\\"") will result in an endless
loop.
flower/std-string.cc