summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTupone Alfredo <tupone@gentoo.org>2015-12-08 21:46:12 +0100
committerTupone Alfredo <tupone@gentoo.org>2015-12-08 21:46:12 +0100
commitb11605f98ffe86003f351b97d7c975c554bf19a6 (patch)
tree43df7d4e887fc63a4448de2ce79a2a23a7561b07 /games-puzzle/quadra
parentsys-boot/grub:0 - add missing slot-operator dep on ncurses when USE="-static" (diff)
downloadgentoo-b11605f98ffe86003f351b97d7c975c554bf19a6.tar.gz
gentoo-b11605f98ffe86003f351b97d7c975c554bf19a6.tar.bz2
gentoo-b11605f98ffe86003f351b97d7c975c554bf19a6.zip
games-puzzle/quadra: Compile with format-security. Bug #544354
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'games-puzzle/quadra')
-rw-r--r--games-puzzle/quadra/files/quadra-1.2.0-format.patch11
-rw-r--r--games-puzzle/quadra/quadra-1.2.0.ebuild1
2 files changed, 12 insertions, 0 deletions
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() {