games-board/maitretarot: format-security. Bug #543016

Package-Manager: portage-2.2.24
This commit is contained in:
Tupone Alfredo
2015-12-16 22:06:18 +01:00
parent 520b00c3b3
commit 2b4cd14d0f
2 changed files with 16 additions and 1 deletions

View File

@@ -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;

View File

@@ -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"