source file of the GNU LilyPond music typesetter
- (c) 2005--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ (c) 2005--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
*/
return out;
}
-
+// Ugh - very inefficient, but safer than fgets.
static string
read_line (FILE *f)
{
int c = 0;
while ((c = fgetc (f)) != EOF && c != '\n')
- out += c;
+ out += char(c);
return out;
}