From: Justin Lecher Date: Mon, 21 Sep 2015 08:27:01 +0000 (+0200) Subject: app-editors/nedit: Fix for format-security X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e250c2ce3904a745b81fe5835aff8f481740caeb;p=gentoo.git app-editors/nedit: Fix for format-security Package-Manager: portage-2.2.20.1 Signed-off-by: Justin Lecher --- diff --git a/app-editors/nedit/files/nedit-5.6-format.patch b/app-editors/nedit/files/nedit-5.6-format.patch new file mode 100644 index 000000000000..e2d6e17a6470 --- /dev/null +++ b/app-editors/nedit/files/nedit-5.6-format.patch @@ -0,0 +1,12 @@ +diff -up nedit-5.6/source/nc.c.format nedit-5.6/source/nc.c +--- nedit-5.6/source/nc.c.format 2014-12-28 13:56:20.000000000 +0000 ++++ nedit-5.6/source/nc.c 2015-06-17 07:30:25.617032345 +0100 +@@ -503,7 +503,7 @@ static int startServer(const char *messa + + /* prompt user whether to start server */ + if (!Preferences.autoStart) { +- printf(message); ++ printf("%s", message); + do { + c = getc(stdin); + } while (c == ' ' || c == '\t'); diff --git a/app-editors/nedit/metadata.xml b/app-editors/nedit/metadata.xml index b71a05ca27aa..843f88b58fab 100644 --- a/app-editors/nedit/metadata.xml +++ b/app-editors/nedit/metadata.xml @@ -1,7 +1,7 @@ - -amynka@gentoo.org - + + amynka@gentoo.org + diff --git a/app-editors/nedit/nedit-5.6.ebuild b/app-editors/nedit/nedit-5.6.ebuild index 3c2f414752d6..ac9448288723 100644 --- a/app-editors/nedit/nedit-5.6.ebuild +++ b/app-editors/nedit/nedit-5.6.ebuild @@ -28,6 +28,7 @@ S="${WORKDIR}/${PN}-5.6" src_prepare() { #respecting LDFLAGS, bug #208189 epatch \ + "${FILESDIR}"/${P}-format.patch \ "${FILESDIR}"/${P}-ldflags.patch \ "${FILESDIR}"/${P}-40_Pointer_to_Integer.patch sed \