summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTupone Alfredo <tupone@gentoo.org>2015-12-16 22:06:18 +0100
committerTupone Alfredo <tupone@gentoo.org>2015-12-16 22:06:18 +0100
commit2b4cd14d0f64279df6a8cf6fc4e2a8e2ea1e7f3a (patch)
tree08d008e752cabc15444588a87ded3da5622520e9 /games-board
parentapp-crypt/pdfcrack: version bump (diff)
downloadgentoo-2b4cd14d0f64279df6a8cf6fc4e2a8e2ea1e7f3a.tar.gz
gentoo-2b4cd14d0f64279df6a8cf6fc4e2a8e2ea1e7f3a.tar.bz2
gentoo-2b4cd14d0f64279df6a8cf6fc4e2a8e2ea1e7f3a.zip
games-board/maitretarot: format-security. Bug #543016
Package-Manager: portage-2.2.24
Diffstat (limited to 'games-board')
-rw-r--r--games-board/maitretarot/files/maitretarot-0.1.98-format.patch11
-rw-r--r--games-board/maitretarot/maitretarot-0.1.98.ebuild6
2 files changed, 16 insertions, 1 deletions
diff --git a/games-board/maitretarot/files/maitretarot-0.1.98-format.patch b/games-board/maitretarot/files/maitretarot-0.1.98-format.patch
new file mode 100644
index 000000000000..b3ff1fe1db1f
--- /dev/null
+++ b/games-board/maitretarot/files/maitretarot-0.1.98-format.patch
@@ -0,0 +1,11 @@
+--- src/game.c.old 2015-12-16 21:59:49.400430743 +0100
++++ src/game.c 2015-12-16 21:59:11.085058332 +0100
+@@ -642,7 +642,7 @@
+ (game, prev_winner, c, ((i + prev_winner) % 4),
+ game->players[((i + prev_winner) % 4)]->turn, &err))
+ {
+- g_message (err->message);
++ g_message ("%s", err->message);
+ turn_nok = TRUE;
+ game->players[((i + prev_winner) % 4)]->ready =
+ MT_PLAYER_READY_SEND_NOK_FOR_CARD;
diff --git a/games-board/maitretarot/maitretarot-0.1.98.ebuild b/games-board/maitretarot/maitretarot-0.1.98.ebuild
index 631fc95ea9bb..fb65203408be 100644
--- a/games-board/maitretarot/maitretarot-0.1.98.ebuild
+++ b/games-board/maitretarot/maitretarot-0.1.98.ebuild
@@ -3,7 +3,7 @@
# $Id$
EAPI=5
-inherit games
+inherit games eutils
DESCRIPTION="server for the french tarot game maitretarot"
HOMEPAGE="http://www.nongnu.org/maitretarot/"
@@ -19,6 +19,10 @@ DEPEND="dev-libs/glib:2
dev-games/libmaitretarot"
RDEPEND=${DEPEND}
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-format.patch
+}
+
src_configure() {
egamesconf \
--with-default-config-file="${GAMES_SYSCONFDIR}/maitretarotrc.xml"