games-mud/gmudix: Fix format-security. Bug #539104
authorTupone Alfredo <tupone@gentoo.org>
Thu, 4 Feb 2016 20:25:23 +0000 (21:25 +0100)
committerTupone Alfredo <tupone@gentoo.org>
Thu, 4 Feb 2016 20:26:02 +0000 (21:26 +0100)
Package-Manager: portage-2.2.26

games-mud/gmudix/files/gmudix-1.0-format.patch [new file with mode: 0644]
games-mud/gmudix/gmudix-1.0.ebuild

diff --git a/games-mud/gmudix/files/gmudix-1.0-format.patch b/games-mud/gmudix/files/gmudix-1.0-format.patch
new file mode 100644 (file)
index 0000000..77314c9
--- /dev/null
@@ -0,0 +1,11 @@
+--- src/gui_user.c.old 2016-02-04 21:21:15.141455597 +0100
++++ src/gui_user.c     2016-02-04 21:21:31.016156493 +0100
+@@ -820,7 +820,7 @@
+     dialog = gtk_message_dialog_new(GTK_WINDOW(user->gui_user.g_window), 
+                 GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_INFO, 
+-                GTK_BUTTONS_CLOSE, msg);
++                GTK_BUTTONS_CLOSE, "%s", msg);
+                 
+     gtk_window_set_transient_for(GTK_WINDOW(user->gui_user.g_window), 
+                                  GTK_WINDOW(dialog));
index 1490308617cc17d45a3d0bcd96afbdd66635e3fe..58961046bf705c8a15f36c6018f88a48eb2e8199 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -19,7 +19,8 @@ DEPEND="${RDEPEND}
        virtual/pkgconfig"
 
 src_prepare() {
-       epatch "${FILESDIR}"/${P}-as-needed.patch
+       epatch "${FILESDIR}"/${P}-as-needed.patch \
+               "${FILESDIR}"/${P}-format.patch
        mv configure.in configure.ac || die
        rm -f missing || die
        eautoreconf