File: src_gtkport_gtkport.c_format.patch

package info (click to toggle)
dopewars 1.5.12-19
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 7,028 kB
  • sloc: ansic: 31,614; sh: 8,577; makefile: 470; yacc: 318
file content (13 lines) | stat: -rw-r--r-- 650 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
Description: Fix formatting so it can build cleanly with -Werror=format-security set.                                                                                                                         Author: Julian Taylor

--- a/src/gtkport/gtkport.c
+++ b/src/gtkport/gtkport.c
@@ -5636,7 +5636,7 @@
 
   dialog = gtk_message_dialog_new(GTK_WINDOW(parent),
                                   GTK_DIALOG_MODAL,
-                                  type, buttons, Text);
+                                  type, buttons, "%s", Text);
   if (Title) gtk_window_set_title(GTK_WINDOW(dialog), Title);
 
   retval = gtk_dialog_run(GTK_DIALOG(dialog));