From: "Alfredo Tupone" <tupone@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/s25rttr/files/, games-strategy/s25rttr/
Date: Tue, 16 Feb 2016 06:47:35 +0000 (UTC) [thread overview]
Message-ID: <1455605220.ed039116374461922879b35078c79d84f0f88794.tupone@gentoo> (raw)
commit: ed039116374461922879b35078c79d84f0f88794
Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 16 06:46:25 2016 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Tue Feb 16 06:47:00 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed039116
games-strategy/s25rttr: compile with format-security. Bug #540636
Package-Manager: portage-2.2.26
games-strategy/s25rttr/files/s25rttr-0.8.1-format.patch | 11 +++++++++++
games-strategy/s25rttr/s25rttr-0.8.1-r1.ebuild | 1 +
2 files changed, 12 insertions(+)
diff --git a/games-strategy/s25rttr/files/s25rttr-0.8.1-format.patch b/games-strategy/s25rttr/files/s25rttr-0.8.1-format.patch
new file mode 100644
index 0000000..588a755
--- /dev/null
+++ b/games-strategy/s25rttr/files/s25rttr-0.8.1-format.patch
@@ -0,0 +1,11 @@
+--- src/dskGameInterface.cpp.old 2016-02-15 21:11:58.308899794 +0100
++++ src/dskGameInterface.cpp 2016-02-15 21:12:24.564433584 +0100
+@@ -1349,7 +1349,7 @@
+ snprintf(text, sizeof(text), _("Team victory! '%s' and '%s' and '%s' and '%s' are the winners!"), GameClient::inst().GetPlayer(winners[0])->name.c_str(),GameClient::inst().GetPlayer(winners[1])->name.c_str(),GameClient::inst().GetPlayer(winners[2])->name.c_str(),GameClient::inst().GetPlayer(winners[3])->name.c_str());
+ break;
+ default:
+- snprintf(text, sizeof(text), _("Team victory!"));
++ snprintf(text, sizeof(text), "%s", _("Team victory!"));
+ break;
+ }
+ messenger.AddMessage("", 0, CD_SYSTEM, text, COLOR_ORANGE);
diff --git a/games-strategy/s25rttr/s25rttr-0.8.1-r1.ebuild b/games-strategy/s25rttr/s25rttr-0.8.1-r1.ebuild
index 46d2365..15d3098 100644
--- a/games-strategy/s25rttr/s25rttr-0.8.1-r1.ebuild
+++ b/games-strategy/s25rttr/s25rttr-0.8.1-r1.ebuild
@@ -32,6 +32,7 @@ src_prepare() {
epatch "${FILESDIR}"/${P}-cmake.patch \
"${FILESDIR}"/${P}-soundconverter.patch \
"${FILESDIR}"/${P}-fpic.patch \
+ "${FILESDIR}"/${P}-format.patch \
"${FILESDIR}"/${P}-miniupnpc-api-14.patch
}
next reply other threads:[~2016-02-16 6:47 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-16 6:47 Alfredo Tupone [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-01-23 2:40 [gentoo-commits] repo/gentoo:master commit in: games-strategy/s25rttr/files/, games-strategy/s25rttr/ Sam James
2022-08-11 7:37 Ionen Wolkens
2021-09-11 17:44 James Le Cuirot
2021-09-11 8:38 James Le Cuirot
2021-08-19 2:00 Sam James
2020-07-26 21:19 James Le Cuirot
2020-04-18 20:47 James Le Cuirot
2018-07-01 0:03 Andreas Sturmlechner
2016-01-10 20:37 David Seifert
2015-10-06 22:53 Michael Sterrett
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1455605220.ed039116374461922879b35078c79d84f0f88794.tupone@gentoo \
--to=tupone@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox