summaryrefslogtreecommitdiff
path: root/0003-fix-format-security.patch
diff options
context:
space:
mode:
Diffstat (limited to '0003-fix-format-security.patch')
-rw-r--r--0003-fix-format-security.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/0003-fix-format-security.patch b/0003-fix-format-security.patch
new file mode 100644
index 0000000..6d9f708
--- /dev/null
+++ b/0003-fix-format-security.patch
@@ -0,0 +1,13 @@
+diff --git a/wmgui/main.c b/wmgui/main.c
+index d989f72..555b041 100644
+--- a/wmgui/main.c
++++ b/wmgui/main.c
+@@ -442,7 +442,7 @@ void message(GtkMessageType type, const gchar *message, GtkWindow *parent)
+ {
+ GtkWidget *dialog;
+
+- dialog = gtk_message_dialog_new(parent, 0, type, GTK_BUTTONS_OK, message);
++ dialog = gtk_message_dialog_new(parent, 0, type, GTK_BUTTONS_OK, "%s", message);
+ gtk_dialog_run(GTK_DIALOG(dialog));
+ gtk_widget_destroy(dialog);
+ }