From: Tupone Alfredo Date: Tue, 8 Dec 2015 20:46:12 +0000 (+0100) Subject: games-puzzle/quadra: Compile with format-security. Bug #544354 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=b11605f98ffe86003f351b97d7c975c554bf19a6;p=gentoo.git games-puzzle/quadra: Compile with format-security. Bug #544354 Package-Manager: portage-2.2.20.1 --- diff --git a/games-puzzle/quadra/files/quadra-1.2.0-format.patch b/games-puzzle/quadra/files/quadra-1.2.0-format.patch new file mode 100644 index 000000000000..d9db4978290f --- /dev/null +++ b/games-puzzle/quadra/files/quadra-1.2.0-format.patch @@ -0,0 +1,11 @@ +--- source/net_list.cpp.old 2015-12-08 21:41:16.782404098 +0100 ++++ source/net_list.cpp 2015-12-08 21:41:33.153114600 +0100 +@@ -693,7 +693,7 @@ + //Drawn at a total higher or equal to end_value: suspense! + // or maybe timer just elapsed and the game is drawn + // (still suspense! :)) +- sprintf(st, ST_GAMETIED); ++ sprintf(st, "%s", ST_GAMETIED); + message(-1, st); + { Sfx stmp(sons.levelup, 0, 0, -1, 18050); } + { Sfx stmp(sons.levelup, 0, 0, -1, 18100); } diff --git a/games-puzzle/quadra/quadra-1.2.0.ebuild b/games-puzzle/quadra/quadra-1.2.0.ebuild index 42d40a599110..9841a5f324c0 100644 --- a/games-puzzle/quadra/quadra-1.2.0.ebuild +++ b/games-puzzle/quadra/quadra-1.2.0.ebuild @@ -29,6 +29,7 @@ src_prepare() { -e "/^libgamesdir:=/s:/games:/${PN}:" \ -e "/^datagamesdir:=/s:/games:/${PN}:" \ config/config.mk.in || die + epatch "${FILESDIR}"/${P}-format.patch } src_install() {