summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2014-12-14 13:25:17 +0000
committerJeroen Roovers <jer@gentoo.org>2014-12-14 13:25:17 +0000
commit5bf35e7cd0ea1c0bf3bf0ef03c853d685d3b8681 (patch)
treea6026f618c0ed13ad84d35bf3901198f9293fec5 /app-text
parentFix grep locale (bug #532552). Fix building against sys-libs/ncurses[tinfo] (... (diff)
downloadgentoo-2-5bf35e7cd0ea1c0bf3bf0ef03c853d685d3b8681.tar.gz
gentoo-2-5bf35e7cd0ea1c0bf3bf0ef03c853d685d3b8681.tar.bz2
gentoo-2-5bf35e7cd0ea1c0bf3bf0ef03c853d685d3b8681.zip
Fix printf call (bug #521252).
(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key A792A613)
Diffstat (limited to 'app-text')
-rw-r--r--app-text/hnb/ChangeLog6
-rw-r--r--app-text/hnb/files/hnb-1.9.18-printf.patch11
-rw-r--r--app-text/hnb/hnb-1.9.18-r1.ebuild5
3 files changed, 19 insertions, 3 deletions
diff --git a/app-text/hnb/ChangeLog b/app-text/hnb/ChangeLog
index 0549fc389a2a..6d8af8d9548f 100644
--- a/app-text/hnb/ChangeLog
+++ b/app-text/hnb/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for app-text/hnb
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/hnb/ChangeLog,v 1.31 2014/12/14 13:20:08 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/hnb/ChangeLog,v 1.32 2014/12/14 13:25:17 jer Exp $
+
+ 14 Dec 2014; Jeroen Roovers <jer@gentoo.org> hnb-1.9.18-r1.ebuild,
+ +files/hnb-1.9.18-printf.patch:
+ Fix printf call (bug #521252).
14 Dec 2014; Jeroen Roovers <jer@gentoo.org> hnb-1.9.18-r1.ebuild,
files/hnb-1.9.18-flags.patch, files/hnb-1.9.18-include.patch:
diff --git a/app-text/hnb/files/hnb-1.9.18-printf.patch b/app-text/hnb/files/hnb-1.9.18-printf.patch
new file mode 100644
index 000000000000..d8ac27efb643
--- /dev/null
+++ b/app-text/hnb/files/hnb-1.9.18-printf.patch
@@ -0,0 +1,11 @@
+--- a/src/libcli/cli.c
++++ b/src/libcli/cli.c
+@@ -57,7 +57,7 @@
+ wp=word;
+ *wp='\0';
+ } else {
+- printf(tbuf);printf("\n");
++ printf("%s\n", tbuf);
+ bp=tbuf;
+ *bp='\0';
+ strcpy(bp,word);
diff --git a/app-text/hnb/hnb-1.9.18-r1.ebuild b/app-text/hnb/hnb-1.9.18-r1.ebuild
index ec7f2efe77a9..8226523a16eb 100644
--- a/app-text/hnb/hnb-1.9.18-r1.ebuild
+++ b/app-text/hnb/hnb-1.9.18-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/hnb/hnb-1.9.18-r1.ebuild,v 1.9 2014/12/14 13:20:08 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/hnb/hnb-1.9.18-r1.ebuild,v 1.10 2014/12/14 13:25:17 jer Exp $
EAPI=5
inherit eutils toolchain-funcs
@@ -25,7 +25,8 @@ src_prepare() {
epatch \
"${FILESDIR}"/${P}-flags.patch \
- "${FILESDIR}"/${P}-include.patch
+ "${FILESDIR}"/${P}-include.patch \
+ "${FILESDIR}"/${P}-printf.patch
tc-export AR CC PKG_CONFIG