summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2015-09-21 10:27:01 +0200
committerJustin Lecher <jlec@gentoo.org>2015-09-21 10:27:09 +0200
commite250c2ce3904a745b81fe5835aff8f481740caeb (patch)
treeb29b018d31c7f039e43948d397fb570899ebb7ec /app-editors/nedit
parentnet-libs/ignition-transport: Add minimal version on zeromq dep. Might fix bug... (diff)
downloadgentoo-e250c2ce3904a745b81fe5835aff8f481740caeb.tar.gz
gentoo-e250c2ce3904a745b81fe5835aff8f481740caeb.tar.bz2
gentoo-e250c2ce3904a745b81fe5835aff8f481740caeb.zip
app-editors/nedit: Fix for format-security
Package-Manager: portage-2.2.20.1 Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'app-editors/nedit')
-rw-r--r--app-editors/nedit/files/nedit-5.6-format.patch12
-rw-r--r--app-editors/nedit/metadata.xml6
-rw-r--r--app-editors/nedit/nedit-5.6.ebuild1
3 files changed, 16 insertions, 3 deletions
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 00000000000..e2d6e17a647
--- /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 b71a05ca27a..843f88b58fa 100644
--- a/app-editors/nedit/metadata.xml
+++ b/app-editors/nedit/metadata.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<maintainer>
-<email>amynka@gentoo.org</email>
-</maintainer>
+ <maintainer>
+ <email>amynka@gentoo.org</email>
+ </maintainer>
</pkgmetadata>
diff --git a/app-editors/nedit/nedit-5.6.ebuild b/app-editors/nedit/nedit-5.6.ebuild
index 3c2f414752d..ac944828872 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 \