[packages/uudeview] Add patch to fix build with -Werror=format-security

megabajt megabajt at pld-linux.org
Wed Jan 30 14:38:29 CET 2013


commit 0560cd47e435651a64c4015e4067289e04672584
Author: Marcin Banasiak <marcin.banasiak at gmail.com>
Date:   Wed Jan 30 14:37:41 2013 +0100

    Add patch to fix build with -Werror=format-security

 uudeview-format-security.patch | 24 ++++++++++++++++++++++++
 uudeview.spec                  |  2 ++
 2 files changed, 26 insertions(+)
---
diff --git a/uudeview.spec b/uudeview.spec
index abe9b70..4aecb53 100644
--- a/uudeview.spec
+++ b/uudeview.spec
@@ -15,6 +15,7 @@ Source0:	http://www.fpx.de/fp/Software/UUDeview/download/%{name}-%{version}.tar.
 # Source0-md5:	0161abaec3658095044601eae82bbc5b
 Patch0:		%{name}-shared.patch
 Patch1:		%{name}-latex.patch
+Patch2:		%{name}-format-security.patch
 URL:		http://www.fpx.de/fp/Software/UUDeview/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -90,6 +91,7 @@ Statyczna biblioteka uulib.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 mv inews/README README.inews
 
diff --git a/uudeview-format-security.patch b/uudeview-format-security.patch
new file mode 100644
index 0000000..f1836e3
--- /dev/null
+++ b/uudeview-format-security.patch
@@ -0,0 +1,24 @@
+diff -urN uudeview-0.5.20/inews/inews.c uudeview-0.5.20.new/inews/inews.c
+--- uudeview-0.5.20/inews/inews.c	2004-01-29 03:14:19.000000000 +0100
++++ uudeview-0.5.20.new/inews/inews.c	2013-01-30 13:52:06.388337684 +0100
+@@ -303,7 +303,7 @@
+ 			putc(*cp, ser_wr_fp);
+ 		else {		/* Stupid & hack.  God damn it. */
+ 			putc(toupper(passwd->pw_name[0]), ser_wr_fp);
+-			fprintf(ser_wr_fp, passwd->pw_name+1);
++			fprintf(ser_wr_fp, "%s", passwd->pw_name+1);
+ 		}
+ 
+ 	fprintf(ser_wr_fp, ")\r\n");
+diff -urN uudeview-0.5.20/unix/uuenview.c uudeview-0.5.20.new/unix/uuenview.c
+--- uudeview-0.5.20/unix/uuenview.c	2002-03-06 14:52:46.000000000 +0100
++++ uudeview-0.5.20.new/unix/uuenview.c	2013-01-30 13:52:48.114778300 +0100
+@@ -483,7 +483,7 @@
+       if (_FP_stristr (input, "multipart") != NULL) {
+ 	/* it is already a multipart posting. grab the boundary */
+ 	if ((ptr = _FP_stristr (input, "boundary=")) != NULL) {
+-	  fprintf(thepipe,  input);
++	  fprintf(thepipe, "%s", input);
+ 	  strcpy (boundary, ParseValue (ptr));
+ 	  hadmulti = 1;
+ 	}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/uudeview.git/commitdiff/0560cd47e435651a64c4015e4067289e04672584



More information about the pld-cvs-commit mailing list