]> git.donarmstrong.com Git - lilypond.git/commit
Issue 4890: Fix ly:format for the string that contain zero
authorMasamichi Hosoda <trueroad@trueroad.jp>
Fri, 10 Jun 2016 13:12:33 +0000 (22:12 +0900)
committerMasamichi Hosoda <trueroad@trueroad.jp>
Wed, 15 Jun 2016 15:06:57 +0000 (00:06 +0900)
commit211634be6f90db700eb8e5725046b27aa153ee92
treea533cdcc5f225458c5aa35c3d35943944b6aea38
parent2a058ff68e446d71f51000bce12f7c13f983ef9d
Issue 4890: Fix ly:format for the string that contain zero

strcpy and strncpy cannot be used in std::string concatenation
because std::string may contain '\0' in its contents.

In order to avoid problems with string that contains '\0',
this commit replaces the strncpy to std::string::copy.
lily/general-scheme.cc