- fix compilation with format security checks.

This commit is contained in:
Arnaud G. GIBERT 2022-04-23 12:35:30 +02:00
parent 1e117672bb
commit c8ecfea6a0
3 changed files with 5 additions and 5 deletions

2
README
View File

@ -17,7 +17,7 @@ Otherwise, you need JACK with MIDI support, gtk+ 2.6 or higher,
make(1), gcc and all the standard headers. Untar the file, type
'make install' and that's it.
If Makefile is not present, you can generate it with:
aclocal && autoheader && automake --add-missing && autoconf
aclocal && autoheader && automake --add-missing && autoconf && ./configure
How to use it?
--------------

View File

@ -19,7 +19,7 @@ Otherwise, you need JACK with MIDI support, gtk+ 2.6 or higher,
make(1), gcc and all the standard headers. Untar the file, type
'make install' and that's it.
If Makefile is not present, you can generate it with:
aclocal && autoheader && automake --add-missing && autoconf
aclocal && autoheader && automake --add-missing && autoconf && ./configure
## How to use it?

View File

@ -317,7 +317,7 @@ warning_async(gpointer s)
{
const char *str = (const char *)s;
g_warning(str);
g_warning("%s",str);
return (FALSE);
}
@ -1810,8 +1810,8 @@ log_handler(const gchar *log_domain, GLogLevelFlags log_level, const gchar *mess
fprintf(stderr, "%s: %s\n", log_domain, message);
if ((log_level | G_LOG_LEVEL_CRITICAL) == G_LOG_LEVEL_CRITICAL) {
dialog = gtk_message_dialog_new(GTK_WINDOW(window), GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR,
GTK_BUTTONS_CLOSE, message);
dialog = gtk_message_dialog_new(GTK_WINDOW(window), GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR,
GTK_BUTTONS_CLOSE, "%s", message);
gtk_dialog_run(GTK_DIALOG(dialog));