gtk2: Avoid possible format string troubles.
authorJustus Winter <justus@g10code.com>
Mon, 1 Aug 2016 13:01:21 +0000 (15:01 +0200)
committerJustus Winter <justus@g10code.com>
Mon, 1 Aug 2016 13:01:21 +0000 (15:01 +0200)
* gtk+-2/pinentry-gtk-2.c (confirm_unhiding): Do not use message as
format string.

Signed-off-by: Justus Winter <justus@g10code.com>
gtk+-2/pinentry-gtk-2.c

index 28b4fdc..98d4fc2 100644 (file)
@@ -389,7 +389,7 @@ confirm_unhiding (void)
      GTK_DIALOG_MODAL,
      GTK_MESSAGE_WARNING,
      GTK_BUTTONS_NONE,
-     message);
+     "%s", message);
   gtk_dialog_add_buttons (GTK_DIALOG (dialog),
                           GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
                           show_btn_label, GTK_RESPONSE_OK,