public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-editors/aee/, app-editors/aee/files/
@ 2017-07-09 13:30 Akinori Hattori
  0 siblings, 0 replies; only message in thread
From: Akinori Hattori @ 2017-07-09 13:30 UTC (permalink / raw
  To: gentoo-commits

commit:     942e97f4b4255da0a9e59a2d3164ce9da22ed5a7
Author:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Sun Jul  9 13:24:58 2017 +0000
Commit:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Sun Jul  9 13:24:58 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=942e97f4

app-editors/aee: fix build with -Werror=format-security

Gentoo-Bug: 521012

Package-Manager: Portage-2.3.6, Repoman-2.3.1

 app-editors/aee/aee-2.2.15b.ebuild               |  5 ++++-
 app-editors/aee/files/aee-Wformat-security.patch | 11 +++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/app-editors/aee/aee-2.2.15b.ebuild b/app-editors/aee/aee-2.2.15b.ebuild
index 3610053fa69..bbd9266d808 100644
--- a/app-editors/aee/aee-2.2.15b.ebuild
+++ b/app-editors/aee/aee-2.2.15b.ebuild
@@ -18,7 +18,10 @@ IUSE="X"
 RDEPEND="X? ( x11-libs/libX11 )"
 DEPEND="${RDEPEND}"
 
-PATCHES=( "${FILESDIR}"/${P}-ae-location.patch )
+PATCHES=(
+	"${FILESDIR}"/${P}-ae-location.patch
+	"${FILESDIR}"/${PN}-Wformat-security.patch
+)
 DOCS=( Changes README.${PN} ${PN}.i18n.guide ${PN}.msg )
 
 src_prepare() {

diff --git a/app-editors/aee/files/aee-Wformat-security.patch b/app-editors/aee/files/aee-Wformat-security.patch
new file mode 100644
index 00000000000..7bc4c9c39fa
--- /dev/null
+++ b/app-editors/aee/files/aee-Wformat-security.patch
@@ -0,0 +1,11 @@
+--- a/aee.c
++++ b/aee.c
+@@ -2493,7 +2493,7 @@
+ 	}
+ 	if (shell_fork)
+ 	{
+-		printf(press_ret_to_cont_str);
++		printf("%s", press_ret_to_cont_str);
+ 		fflush(stdout);
+ 		while (((in = getchar()) != '\n') && (in != '\r'))
+ 			;


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-07-09 13:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-09 13:30 [gentoo-commits] repo/gentoo:master commit in: app-editors/aee/, app-editors/aee/files/ Akinori Hattori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox