diff options
author | Tupone Alfredo <tupone@gentoo.org> | 2015-10-21 14:30:09 +0200 |
---|---|---|
committer | Tupone Alfredo <tupone@gentoo.org> | 2015-10-21 14:31:07 +0200 |
commit | 6c3947467c0c15b653cb09f6fd62a0a786a62cdd (patch) | |
tree | 2a635e0a40396f03f8fe6cca5b3340ca0adb9046 /games-board | |
parent | dev-scheme/chicken: add alpha keyword (diff) | |
download | gentoo-6c3947467c0c15b653cb09f6fd62a0a786a62cdd.tar.gz gentoo-6c3947467c0c15b653cb09f6fd62a0a786a62cdd.tar.bz2 gentoo-6c3947467c0c15b653cb09f6fd62a0a786a62cdd.zip |
games-board/mt_ncurses_client: Fix compile with -Wformat-security. Bug #546406
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'games-board')
-rw-r--r-- | games-board/mt_ncurses_client/files/mt_ncurses_client-0.1.98-format.patch | 11 | ||||
-rw-r--r-- | games-board/mt_ncurses_client/mt_ncurses_client-0.1.98.ebuild | 6 |
2 files changed, 16 insertions, 1 deletions
diff --git a/games-board/mt_ncurses_client/files/mt_ncurses_client-0.1.98-format.patch b/games-board/mt_ncurses_client/files/mt_ncurses_client-0.1.98-format.patch new file mode 100644 index 000000000000..e070a2348bc1 --- /dev/null +++ b/games-board/mt_ncurses_client/files/mt_ncurses_client-0.1.98-format.patch @@ -0,0 +1,11 @@ +--- src/player_client.c.old 2015-10-21 14:21:04.317896103 +0200 ++++ src/player_client.c 2015-10-21 14:21:40.001225103 +0200 +@@ -38,7 +38,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; + } diff --git a/games-board/mt_ncurses_client/mt_ncurses_client-0.1.98.ebuild b/games-board/mt_ncurses_client/mt_ncurses_client-0.1.98.ebuild index 6341f8c3fd2e..a92f4356a2e1 100644 --- a/games-board/mt_ncurses_client/mt_ncurses_client-0.1.98.ebuild +++ b/games-board/mt_ncurses_client/mt_ncurses_client-0.1.98.ebuild @@ -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/" @@ -21,6 +21,10 @@ DEPEND="dev-libs/glib:2 sys-libs/ncurses" RDEPEND=${DEPEND} +src_prepare() { + epatch "${FILESDIR}"/${P}-format.patch +} + src_install() { default prepgamesdirs |