games-puzzle/quadra: Compile with format-security. Bug #544354
authorTupone Alfredo <tupone@gentoo.org>
Tue, 8 Dec 2015 20:46:12 +0000 (21:46 +0100)
committerTupone Alfredo <tupone@gentoo.org>
Tue, 8 Dec 2015 20:46:12 +0000 (21:46 +0100)
Package-Manager: portage-2.2.20.1

games-puzzle/quadra/files/quadra-1.2.0-format.patch [new file with mode: 0644]
games-puzzle/quadra/quadra-1.2.0.ebuild

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 (file)
index 0000000..d9db497
--- /dev/null
@@ -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); }
index 42d40a5991104dec7e2b62741b512e172ce31cb1..9841a5f324c098c2c462b8758e3784f319c6b06f 100644 (file)
@@ -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() {