summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTupone Alfredo <tupone@gentoo.org>2016-02-04 21:25:23 +0100
committerTupone Alfredo <tupone@gentoo.org>2016-02-04 21:26:02 +0100
commit4eb354eb44363f33c5f849ac35337f12ba870af5 (patch)
tree250a4877976ae9a305f16ed0c2f56d064d4585b4 /games-mud
parentnet-analyzer/nmap: add alpha keyword (diff)
downloadgentoo-4eb354eb44363f33c5f849ac35337f12ba870af5.tar.gz
gentoo-4eb354eb44363f33c5f849ac35337f12ba870af5.tar.bz2
gentoo-4eb354eb44363f33c5f849ac35337f12ba870af5.zip
games-mud/gmudix: Fix format-security. Bug #539104
Package-Manager: portage-2.2.26
Diffstat (limited to 'games-mud')
-rw-r--r--games-mud/gmudix/files/gmudix-1.0-format.patch11
-rw-r--r--games-mud/gmudix/gmudix-1.0.ebuild5
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 00000000000..77314c94f95
--- /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 1490308617c..58961046bf7 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