56c4ed4
From 46571b1b2f7c9f6c9c3eef7b5b96aed8c792fe7d Mon Sep 17 00:00:00 2001
56c4ed4
From: Jakub Filak <jfilak@redhat.com>
56c4ed4
Date: Tue, 26 Apr 2016 08:27:24 +0200
56c4ed4
Subject: [PATCH] all: format security
56c4ed4
56c4ed4
https://github.com/pld-linux/libreport/blob/d8f3599a9073699caad425293c0d39afe3d2c4c4/format-security.patch
56c4ed4
https://github.com/pld-linux/libreport/blob/ba3309594e53f98e110bcfa2ec2596d0c18e3ec0/format-security.patch
56c4ed4
56c4ed4
Signed-off-by: Jakub Filak <jfilak@redhat.com>
56c4ed4
---
56c4ed4
 src/gui-wizard-gtk/wizard.c       | 2 +-
56c4ed4
 src/plugins/reporter-rhtsupport.c | 2 +-
56c4ed4
 src/plugins/reporter-ureport.c    | 2 +-
56c4ed4
 3 files changed, 3 insertions(+), 3 deletions(-)
56c4ed4
56c4ed4
diff --git a/src/gui-wizard-gtk/wizard.c b/src/gui-wizard-gtk/wizard.c
56c4ed4
index 50047d5..bdee590 100644
56c4ed4
--- a/src/gui-wizard-gtk/wizard.c
56c4ed4
+++ b/src/gui-wizard-gtk/wizard.c
56c4ed4
@@ -3196,7 +3196,7 @@ static void on_btn_add_file(GtkButton *button)
56c4ed4
                 GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
56c4ed4
                 GTK_MESSAGE_WARNING,
56c4ed4
                 GTK_BUTTONS_CLOSE,
56c4ed4
-                message);
56c4ed4
+                "%s", message);
56c4ed4
             free(message);
56c4ed4
             gtk_window_set_transient_for(GTK_WINDOW(dlg), GTK_WINDOW(g_wnd_assistant));
56c4ed4
             gtk_dialog_run(GTK_DIALOG(dlg));
56c4ed4
diff --git a/src/plugins/reporter-rhtsupport.c b/src/plugins/reporter-rhtsupport.c
56c4ed4
index 8778fa7..82b0c8e 100644
56c4ed4
--- a/src/plugins/reporter-rhtsupport.c
56c4ed4
+++ b/src/plugins/reporter-rhtsupport.c
56c4ed4
@@ -269,7 +269,7 @@ char *submit_ureport(const char *dump_dir_name, struct ureport_server_config *co
56c4ed4
         ureport_server_response_save_in_dump_dir(resp, dump_dir_name, conf);
56c4ed4
 
56c4ed4
         if (resp->urr_message)
56c4ed4
-            log(resp->urr_message);
56c4ed4
+            log("%s", resp->urr_message);
56c4ed4
     }
56c4ed4
     else if (g_verbose > 2)
56c4ed4
         error_msg(_("Server responded with an error: '%s'"), resp->urr_value);
56c4ed4
diff --git a/src/plugins/reporter-ureport.c b/src/plugins/reporter-ureport.c
56c4ed4
index 52a05f5..adab8ec 100644
56c4ed4
--- a/src/plugins/reporter-ureport.c
56c4ed4
+++ b/src/plugins/reporter-ureport.c
56c4ed4
@@ -312,7 +312,7 @@ int main(int argc, char **argv)
56c4ed4
         {
56c4ed4
             log(_("This problem has already been reported."));
56c4ed4
             if (response->urr_message)
56c4ed4
-                log(response->urr_message);
56c4ed4
+                log("%s", response->urr_message);
56c4ed4
 
56c4ed4
             ret = EXIT_STOP_EVENT_RUN;
56c4ed4
         }
56c4ed4
-- 
56c4ed4
2.7.4
56c4ed4