summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTupone Alfredo <tupone@gentoo.org>2016-01-14 21:39:57 +0100
committerTupone Alfredo <tupone@gentoo.org>2016-01-14 21:40:33 +0100
commit4554d8a520f2fcb0879f77d59f65e3f2e4cf4ccc (patch)
tree3fb67ccd8a74d20af5c2f585accfdd7d049aa510 /games-board/sirius
parentnet-misc/openssh: amd64 stable (diff)
downloadgentoo-4554d8a520f2fcb0879f77d59f65e3f2e4cf4ccc.tar.gz
gentoo-4554d8a520f2fcb0879f77d59f65e3f2e4cf4ccc.tar.bz2
gentoo-4554d8a520f2fcb0879f77d59f65e3f2e4cf4ccc.zip
games-board/sirius: Fix format-security. Bug #539102
Package-Manager: portage-2.2.26
Diffstat (limited to 'games-board/sirius')
-rw-r--r--games-board/sirius/files/sirius-0.8.0-format.patch11
-rw-r--r--games-board/sirius/sirius-0.8.0.ebuild5
2 files changed, 14 insertions, 2 deletions
diff --git a/games-board/sirius/files/sirius-0.8.0-format.patch b/games-board/sirius/files/sirius-0.8.0-format.patch
new file mode 100644
index 00000000000..dccf6e24432
--- /dev/null
+++ b/games-board/sirius/files/sirius-0.8.0-format.patch
@@ -0,0 +1,11 @@
+--- src/sirius.c.old 2016-01-14 21:22:53.946900371 +0100
++++ src/sirius.c 2016-01-14 21:24:08.240507669 +0100
+@@ -180,7 +180,7 @@
+
+ paus = 1;
+
+- box = gtk_message_dialog_new (GTK_WINDOW (window), GTK_DIALOG_MODAL, GTK_MESSAGE_INFO, GTK_BUTTONS_OK, message);
++ box = gtk_message_dialog_new (GTK_WINDOW (window), GTK_DIALOG_MODAL, GTK_MESSAGE_INFO, GTK_BUTTONS_OK, "%s", message);
+ gtk_dialog_run (GTK_DIALOG(box));
+ gtk_widget_destroy(box);
+
diff --git a/games-board/sirius/sirius-0.8.0.ebuild b/games-board/sirius/sirius-0.8.0.ebuild
index 1396a940df9..cccde9906ce 100644
--- a/games-board/sirius/sirius-0.8.0.ebuild
+++ b/games-board/sirius/sirius-0.8.0.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
-inherit autotools games
+inherit autotools eutils games
DESCRIPTION="A program for playing the game of othello/reversi"
HOMEPAGE="http://sirius.bitvis.nu/"
@@ -29,6 +29,7 @@ src_prepare() {
-e '/Categories/s/Application;//' \
sirius.desktop.in || die
mv configure.in configure.ac || die
+ epatch "${FILESDIR}"/${P}-format.patch
eautoreconf
}