Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
+#include "config.hh"
+
#include <math.h> /* isinf */
+#include <stdio.h>
+#include <libintl.h> // gettext on macos x
+#include "libc-extension.hh"
#include "lily-guile.hh"
#include "string.hh"
#include "misc.hh"
r = 0.0;
}
- sprintf (str, "%08.4f", r);
+ snprintf (str, sizeof (str), "%08.4f", r);
}
else
- sprintf (str, "%d", scm_to_int (s));
+ snprintf (str, sizeof (str), "%d", scm_to_int (s));
return scm_makfrom0str (str);
}