1 |
commit: b11605f98ffe86003f351b97d7c975c554bf19a6 |
2 |
Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 8 20:46:12 2015 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 8 20:46:12 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b11605f9 |
7 |
|
8 |
games-puzzle/quadra: Compile with format-security. Bug #544354 |
9 |
|
10 |
Package-Manager: portage-2.2.20.1 |
11 |
|
12 |
games-puzzle/quadra/files/quadra-1.2.0-format.patch | 11 +++++++++++ |
13 |
games-puzzle/quadra/quadra-1.2.0.ebuild | 1 + |
14 |
2 files changed, 12 insertions(+) |
15 |
|
16 |
diff --git a/games-puzzle/quadra/files/quadra-1.2.0-format.patch b/games-puzzle/quadra/files/quadra-1.2.0-format.patch |
17 |
new file mode 100644 |
18 |
index 0000000..d9db497 |
19 |
--- /dev/null |
20 |
+++ b/games-puzzle/quadra/files/quadra-1.2.0-format.patch |
21 |
@@ -0,0 +1,11 @@ |
22 |
+--- source/net_list.cpp.old 2015-12-08 21:41:16.782404098 +0100 |
23 |
++++ source/net_list.cpp 2015-12-08 21:41:33.153114600 +0100 |
24 |
+@@ -693,7 +693,7 @@ |
25 |
+ //Drawn at a total higher or equal to end_value: suspense! |
26 |
+ // or maybe timer just elapsed and the game is drawn |
27 |
+ // (still suspense! :)) |
28 |
+- sprintf(st, ST_GAMETIED); |
29 |
++ sprintf(st, "%s", ST_GAMETIED); |
30 |
+ message(-1, st); |
31 |
+ { Sfx stmp(sons.levelup, 0, 0, -1, 18050); } |
32 |
+ { Sfx stmp(sons.levelup, 0, 0, -1, 18100); } |
33 |
|
34 |
diff --git a/games-puzzle/quadra/quadra-1.2.0.ebuild b/games-puzzle/quadra/quadra-1.2.0.ebuild |
35 |
index 42d40a5..9841a5f 100644 |
36 |
--- a/games-puzzle/quadra/quadra-1.2.0.ebuild |
37 |
+++ b/games-puzzle/quadra/quadra-1.2.0.ebuild |
38 |
@@ -29,6 +29,7 @@ src_prepare() { |
39 |
-e "/^libgamesdir:=/s:/games:/${PN}:" \ |
40 |
-e "/^datagamesdir:=/s:/games:/${PN}:" \ |
41 |
config/config.mk.in || die |
42 |
+ epatch "${FILESDIR}"/${P}-format.patch |
43 |
} |
44 |
|
45 |
src_install() { |