Skip to content

Commit

Permalink
games-board/mt_ncurses_client: Fix compile with -Wformat-security. Bu…
Browse files Browse the repository at this point in the history
…g #546406

Package-Manager: portage-2.2.20.1
  • Loading branch information
atupone committed Oct 21, 2015
1 parent eb5abaa commit 6c39474
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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;
}
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand All @@ -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
Expand Down

0 comments on commit 6c39474

Please sign in to comment.