[packages/rman] Fixing printf format string usage
jajcus
jajcus at pld-linux.org
Sat Oct 5 20:58:26 CEST 2013
commit ea77a599f7e5e9802a9a094db7a3d89445e5930e
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Sat Oct 5 20:58:11 2013 +0200
Fixing printf format string usage
rel. 3
rman-format_string.patch | 12 ++++++++++++
rman.spec | 4 +++-
2 files changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/rman.spec b/rman.spec
index bee6feb..25f3555 100644
--- a/rman.spec
+++ b/rman.spec
@@ -2,12 +2,13 @@ Summary: PolyglotMan - reverse compilation of man pages
Summary(pl.UTF-8): PolyglotMan - dekompilacja stron manuala
Name: rman
Version: 3.2
-Release: 2
+Release: 3
License: Artistic
Group: Applications
Source0: http://dl.sourceforge.net/polyglotman/%{name}-%{version}.tar.gz
# Source0-md5: 6d1d67641c6d042595a96a62340d3cc6
Source1: %{name}.1.pl
+Patch0: %{name}-format_string.patch
URL: http://polyglotman.sourceforge.net/
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -27,6 +28,7 @@ niej myśleć jako "reverse man" (odwrotny man).
%prep
%setup -q
+%patch0 -p1
%build
%{__make} \
diff --git a/rman-format_string.patch b/rman-format_string.patch
new file mode 100644
index 0000000..3ab427a
--- /dev/null
+++ b/rman-format_string.patch
@@ -0,0 +1,12 @@
+diff -dur rman-3.2.orig/rman.c rman-3.2/rman.c
+--- rman-3.2.orig/rman.c 2003-07-26 21:15:00.000000000 +0200
++++ rman-3.2/rman.c 2013-10-05 20:56:47.856549351 +0200
+@@ -1372,7 +1372,7 @@
+ break;
+ case BEGINSECTION: break;
+ case ENDSECTION:
+- if (sectheadid==NAME && message!=NULL) printf(message);
++ if (sectheadid==NAME && message!=NULL) printf("%s", message);
+ break;
+ case BEGINSUBSECTION: break;
+ case ENDSUBSECTION: break;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rman.git/commitdiff/ea77a599f7e5e9802a9a094db7a3d89445e5930e
More information about the pld-cvs-commit
mailing list