commit: 4eb354eb44363f33c5f849ac35337f12ba870af5
Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 4 20:25:23 2016 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Thu Feb 4 20:26:02 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4eb354eb
games-mud/gmudix: Fix format-security. Bug #539104
Package-Manager: portage-2.2.26
games-mud/gmudix/files/gmudix-1.0-format.patch | 11 +++++++++++
games-mud/gmudix/gmudix-1.0.ebuild | 5 +++--
2 files changed, 14 insertions(+), 2 deletions(-)
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
index 0000000..77314c9
--- /dev/null
+++ b/games-mud/gmudix/files/gmudix-1.0-format.patch
@@ -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));
diff --git a/games-mud/gmudix/gmudix-1.0.ebuild
b/games-mud/gmudix/gmudix-1.0.ebuild
index 1490308..5896104 100644
--- a/games-mud/gmudix/gmudix-1.0.ebuild
+++ b/games-mud/gmudix/gmudix-1.0.ebuild
@@ -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