summaryrefslogtreecommitdiff
path: root/0003-fix-format-security.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-10-22 10:55:02 +0000
committerCoprDistGit <infra@openeuler.org>2026-10-22 10:55:02 +0000
commit4f0834d018b0eb4c2cbe352324b851dfffe3c485 (patch)
treee7f7b3f7ef19e8862f8a612268c82a43d688fb18 /0003-fix-format-security.patch
parentb53c9ada679f3a03ecad6368ca387ed68f18627d (diff)
automatic import of ros-humble-cwiid-developeneuler24.03_LTS_SP3
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);
+ }