X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Frelocate.cc;h=9c8e464d32856c65129928bc11e4208216efb0a8;hb=aa7e0d00e324791a14ba0b9d840ec4fe7e962700;hp=42c54a65ff3863bf3d9635b9a21b3956f46698ed;hpb=6e2bab4168a86c459a5eea83abdda23d9017f27d;p=lilypond.git diff --git a/lily/relocate.cc b/lily/relocate.cc index 42c54a65ff..9c8e464d32 100644 --- a/lily/relocate.cc +++ b/lily/relocate.cc @@ -336,7 +336,7 @@ expand_environment_variables (string orig) return out; } - +// Ugh - very inefficient, but safer than fgets. static string read_line (FILE *f) { @@ -344,7 +344,7 @@ read_line (FILE *f) int c = 0; while ((c = fgetc (f)) != EOF && c != '\n') - out += c; + out += char(c); return out; }