diff options
author | Tupone Alfredo <tupone@gentoo.org> | 2016-02-16 07:46:25 +0100 |
---|---|---|
committer | Tupone Alfredo <tupone@gentoo.org> | 2016-02-16 07:47:00 +0100 |
commit | ed039116374461922879b35078c79d84f0f88794 (patch) | |
tree | b84a17b03a550f37dec5ed63f6aef8509ffd3bd6 /games-strategy | |
parent | dev-ruby/spring: add 1.6.3 (diff) | |
download | gentoo-ed039116374461922879b35078c79d84f0f88794.tar.gz gentoo-ed039116374461922879b35078c79d84f0f88794.tar.bz2 gentoo-ed039116374461922879b35078c79d84f0f88794.zip |
games-strategy/s25rttr: compile with format-security. Bug #540636
Package-Manager: portage-2.2.26
Diffstat (limited to 'games-strategy')
-rw-r--r-- | games-strategy/s25rttr/files/s25rttr-0.8.1-format.patch | 11 | ||||
-rw-r--r-- | games-strategy/s25rttr/s25rttr-0.8.1-r1.ebuild | 1 |
2 files changed, 12 insertions, 0 deletions
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 000000000000..588a755e829c --- /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 46d23651c901..15d30987c1a4 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 } |