games-board/mt_dolphin_ia: compile with format-security (bug #546546)
authorTupone Alfredo <tupone@gentoo.org>
Wed, 14 Oct 2015 19:36:49 +0000 (21:36 +0200)
committerTupone Alfredo <tupone@gentoo.org>
Wed, 14 Oct 2015 19:37:59 +0000 (21:37 +0200)
Package-Manager: portage-2.2.20.1

games-board/mt_dolphin_ia/files/mt_dolphin_ia-0.1.98-formatsecurity.patch [new file with mode: 0644]
games-board/mt_dolphin_ia/mt_dolphin_ia-0.1.98.ebuild

diff --git a/games-board/mt_dolphin_ia/files/mt_dolphin_ia-0.1.98-formatsecurity.patch b/games-board/mt_dolphin_ia/files/mt_dolphin_ia-0.1.98-formatsecurity.patch
new file mode 100644 (file)
index 0000000..c949a4a
--- /dev/null
@@ -0,0 +1,11 @@
+--- src/player_client.c.old    2015-10-14 21:19:05.347505352 +0200
++++ src/player_client.c        2015-10-14 21:19:22.057195175 +0200
+@@ -33,7 +33,7 @@
+ {
+   player->nick[0] = g_string_new (config->player_name->str);
+ 
+-  g_printerr (player->nick[0]->str);
++  g_printerr ("%s", player->nick[0]->str);
+ 
+   return (0);
+ }
index 6d276408cc5244671aa8ae92f7df4e8410e6aeaf..6a7d705aaaa6267d1dd445eb7f4f93723f18c2af 100644 (file)
@@ -3,7 +3,7 @@
 # $Id$
 
 EAPI=5
-inherit games
+inherit games eutils
 
 DESCRIPTION="client for the french tarot game maitretarot"
 HOMEPAGE="http://www.nongnu.org/maitretarot/"
@@ -20,6 +20,10 @@ DEPEND="dev-libs/glib:2
        dev-games/libmt_client"
 RDEPEND=${DEPEND}
 
+src_prepare() {
+       epatch "${FILESDIR}"/${P}-formatsecurity.patch
+}
+
 src_install() {
        default
        prepgamesdirs