app-editors/aee: fix build with -Werror=format-security
authorAkinori Hattori <hattya@gentoo.org>
Sun, 9 Jul 2017 13:24:58 +0000 (22:24 +0900)
committerAkinori Hattori <hattya@gentoo.org>
Sun, 9 Jul 2017 13:24:58 +0000 (22:24 +0900)
Gentoo-Bug: 521012

Package-Manager: Portage-2.3.6, Repoman-2.3.1

app-editors/aee/aee-2.2.15b.ebuild
app-editors/aee/files/aee-Wformat-security.patch [new file with mode: 0644]

index 3610053fa695ab95dcd40b6aba162b2c5842166b..bbd9266d8086d295fc995a0d056edc9ae37aff4b 100644 (file)
@@ -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 (file)
index 0000000..7bc4c9c
--- /dev/null
@@ -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'))
+                       ;