]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/std-string.cc
Fix some bugs in the dynamic engraver and PostScript backend
[lilypond.git] / flower / std-string.cc
index 6d8ebd52f5ba7fe7d00319176feec7150b14eb9d..304ddf33cf773076d1f43f3a70b1d30822a5b7ed 100644 (file)
@@ -89,9 +89,8 @@ string_copy (string s)
 {
   ssize len = s.length ();
   char *dest = new char[len + 1];
-  copy (s.begin (), s.end (), dest);
-  dest[len] = 0;
-  
+  //s.copy (dest, len + 1);
+  memcpy (dest, s.c_str (), len + 1);
   return dest;
 }
 
@@ -106,9 +105,8 @@ string_compare (string const &a, string const &b)
 vector<string>
 string_split (string str, char c)
 {
-  ssize i = str.find (c);
-
   vector<string> a;
+  ssize i = str.find (c);
   while (i != NPOS)
     {
       string s = str.substr (0, i);