Package: gtk-led-askpass
Version: 0.10-2
Severity: normal
Tags: patch

Hello,

as the Ubuntu gcc has some additional checks enabled by default,
gtk-led-askpass FTBFS with the following error message:
,----
| make[1]: Entering directory `/tmp/buildd/gtk-led-askpass-0.10'
| cc -Wall -Werror `pkg-config --cflags gtk+-2.0` -g -O2 -c gtk-led-askpass.c 
-o gtk-led-askpass.o
| cc1: warnings being treated as errors
| gtk-led-askpass.c: In function 'fail':
| gtk-led-askpass.c:85: error: format not a string literal and no format 
arguments
| gtk-led-askpass.c: In function 'main':
| gtk-led-askpass.c:245: error: format not a string literal and no format 
arguments
| make[1]: *** [gtk-led-askpass.o] Error 1
| make[1]: Leaving directory `/tmp/buildd/gtk-led-askpass-0.10'
| make: *** [build-stamp] Error 2
`----

Michael

--- gtk-led-askpass-0.10.orig/gtk-led-askpass.c
+++ gtk-led-askpass-0.10/gtk-led-askpass.c
@@ -82,7 +82,7 @@
 void fail(gchar *message)
 {
        GtkWidget *dialog = gtk_message_dialog_new(NULL, 0, GTK_MESSAGE_ERROR,
-               GTK_BUTTONS_CLOSE, message);
+               GTK_BUTTONS_CLOSE, "%s", message);
 
        gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER);
        gtk_dialog_run(GTK_DIALOG(dialog));
@@ -242,7 +242,7 @@
 
        /* Question dialog with no parent; OK and Cancel buttons. */
        dialog = gtk_message_dialog_new(NULL, 0, GTK_MESSAGE_QUESTION,
-               GTK_BUTTONS_OK_CANCEL, message);
+               GTK_BUTTONS_OK_CANCEL, "%s", message);
        gtk_window_set_title(GTK_WINDOW(dialog), TITLE);
        /* Place the dialog in the middle of the screen. */
        gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER);



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to