1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
Description: Fix "format not a string literal and no format arguments" errors.
Author: Alessio Treglia <alessio@debian.org>
Forwarded: no
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=643412
---
src/jack-keyboard.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- jack-keyboard.orig/src/jack-keyboard.c
+++ jack-keyboard/src/jack-keyboard.c
@@ -256,7 +256,7 @@ warning_async(gpointer s)
{
const char *str = (const char *)s;
- g_warning(str);
+ g_warning("%s", str);
return (FALSE);
}
@@ -1678,7 +1678,7 @@ log_handler(const gchar *log_domain, GLo
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);
+ GTK_BUTTONS_CLOSE, "%s", message);
gtk_dialog_run(GTK_DIALOG(dialog));
|