[packages/lirc] - fix -Wformat-security errors - rel 52
baggins
baggins at pld-linux.org
Tue Sep 25 14:43:12 CEST 2012
commit be53673b5ca303261f1b3f296836e23e92a47647
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Tue Sep 25 14:42:58 2012 +0200
- fix -Wformat-security errors
- rel 52
format-security.patch | 11 +++++++++++
lirc.spec | 4 +++-
2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/lirc.spec b/lirc.spec
index 8ce8af2..a960ae4 100644
--- a/lirc.spec
+++ b/lirc.spec
@@ -20,7 +20,7 @@
%endif
%define pname lirc
-%define rel 51
+%define rel 52
#
# main package
@@ -58,6 +58,7 @@ Patch3: %{pname}-kernel.patch
Patch4: %{pname}-sparc.patch
Patch5: %{pname}-remotes.patch
Patch6: %{pname}-kernelcc.patch
+Patch7: format-security.patch
URL: http://www.lirc.org/
BuildRequires: alsa-lib-devel
BuildRequires: autoconf >= 2.50
@@ -569,6 +570,7 @@ równoległego.
%patch4 -p1
%patch5 -p1
%patch6 -p1
+%patch7 -p1
%build
echo '#' > drivers/Makefile.am
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..06305a2
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,11 @@
+--- lirc-0.9.0/doc/man2html.c~ 2011-03-25 23:28:18.000000000 +0100
++++ lirc-0.9.0/doc/man2html.c 2012-09-25 14:40:14.082497313 +0200
+@@ -3027,7 +3027,7 @@
+ /* for mosaic users */
+ printf("<HR>\n<A NAME=\"index\"> </A><H2>Index</H2>\n<DL>\n");
+ manidx[mip]=0;
+- printf(manidx);
++ printf("%s", manidx);
+ if (subs) printf("</DL>\n");
+ printf("</DL>\n");
+ print_sig();
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/lirc.git/commitdiff/be53673b5ca303261f1b3f296836e23e92a47647
More information about the pld-cvs-commit
mailing list