summaryrefslogtreecommitdiff
path: root/debian/patches/format-security.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/format-security.patch')
-rw-r--r--debian/patches/format-security.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/debian/patches/format-security.patch b/debian/patches/format-security.patch
new file mode 100644
index 0000000..d6595b4
--- /dev/null
+++ b/debian/patches/format-security.patch
@@ -0,0 +1,41 @@
+From: Maximiliano Curia <maxy@debian.org>
+Date: Sat, 7 Nov 2015 16:00:53 +0100
+Subject: format-security
+
+## Description: Avoid format-security errors
+## Origin/Author: Maximiliano Curia <maxy@debian.org>
+---
+ src/dialogs.c | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/src/dialogs.c b/src/dialogs.c
+index 5facc0d..402e096 100644
+--- a/src/dialogs.c
++++ b/src/dialogs.c
+@@ -61,7 +61,7 @@ oregano_error_with_title (gchar *title, gchar *desc)
+ GTK_DIALOG_MODAL,
+ GTK_MESSAGE_ERROR,
+ GTK_BUTTONS_OK,
+- span_msg->str);
++ "%s", span_msg->str);
+
+ gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
+
+@@ -100,7 +100,7 @@ oregano_warning_with_title (gchar *title, gchar *desc)
+ GTK_DIALOG_MODAL,
+ GTK_MESSAGE_WARNING,
+ GTK_BUTTONS_OK,
+- span_msg->str);
++ "%s", span_msg->str);
+
+ gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
+
+@@ -120,7 +120,7 @@ oregano_question (gchar *msg)
+ GTK_MESSAGE_QUESTION,
+ GTK_BUTTONS_OK,
+ GTK_BUTTONS_CANCEL,
+- msg);
++ "%s", msg);
+
+ gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CANCEL);
+