[SCM] jack-keyboard/master: Fix "format not a string literal and no format arguments" errors. (Closes: #643412)

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Wed Oct 5 19:13:52 UTC 2011


The following commit has been merged in the master branch:
commit c2db7b07f8f57f24cce4753c44eb6ad96f8b2b40
Author: Alessio Treglia <alessio at debian.org>
Date:   Wed Oct 5 21:13:36 2011 +0200

    Fix "format not a string literal and no format arguments" errors. (Closes: #643412)

diff --git a/debian/patches/0002-format_not_a_string_letteral.patch b/debian/patches/0002-format_not_a_string_letteral.patch
new file mode 100644
index 0000000..3a78ac5
--- /dev/null
+++ b/debian/patches/0002-format_not_a_string_letteral.patch
@@ -0,0 +1,28 @@
+Description: Fix "format not a string literal and no format arguments" errors.
+Author: Alessio Treglia <alessio at 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
+@@ -258,7 +258,7 @@ warning_async(gpointer s)
+ {
+ 	const char *str = (const char *)s;
+ 
+-	g_warning(str);
++	g_warning("%s", str);
+ 
+ 	return (FALSE);
+ }
+@@ -1680,7 +1680,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));
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 440e689..ae94263 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 0001-buildsystem.patch
+0002-format_not_a_string_letteral.patch
 2001-hide_no_lash_warning.patch

-- 
jack-keyboard packaging



More information about the pkg-multimedia-commits mailing list