[packages/Canna] - added format patch (for -Werror=format-security errors)
qboosh
qboosh at pld-linux.org
Tue Nov 13 19:45:18 CET 2012
commit 7b3022f763f98369a16502102f706747c67dc5e7
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Nov 13 19:45:22 2012 +0100
- added format patch (for -Werror=format-security errors)
Canna-format.patch | 34 ++++++++++++++++++++++++++++++++++
Canna.spec | 6 ++++--
2 files changed, 38 insertions(+), 2 deletions(-)
---
diff --git a/Canna.spec b/Canna.spec
index a138105..0685871 100644
--- a/Canna.spec
+++ b/Canna.spec
@@ -13,7 +13,8 @@ Source0: http://downloads.sourceforge.jp/canna/9565/%{name}%{dver}.tar.bz2
Source1: %{name}.init
Source2: %{name}-dot-canna
Patch0: %{name}-conf.patch
-Patch1: %{name}-lib64.patch
+Patch1: %{name}-format.patch
+Patch2: %{name}-lib64.patch
URL: http://canna.sourceforge.jp/
BuildRequires: cpp
BuildRequires: rpmbuild(macros) >= 1.268
@@ -106,8 +107,9 @@ Ten pakiet zawiera statyczne biblioteki Canna.
%prep
%setup -q -n %{name}%{dver}
%patch0 -p1
-%if "%{_lib}" == "lib64"
%patch1 -p1
+%if "%{_lib}" == "lib64"
+%patch2 -p1
%endif
%build
diff --git a/Canna-format.patch b/Canna-format.patch
new file mode 100644
index 0000000..c2946c5
--- /dev/null
+++ b/Canna-format.patch
@@ -0,0 +1,34 @@
+--- Canna37p3/cmd/catdic/can.c.orig 2003-02-01 20:34:20.000000000 +0100
++++ Canna37p3/cmd/catdic/can.c 2012-11-13 19:44:35.098812750 +0100
+@@ -1236,7 +1236,7 @@
+ break;
+ default:
+ if (init[0] == '/') {
+- (void)fprintf(stderr,msg_abnl);
++ (void)fputs(msg_abnl,stderr);
+ } else {
+ (void)fprintf(stderr,msg_abnls,init);
+ }
+@@ -1297,11 +1297,11 @@
+
+ if ( opt_fq ) {
+ if ( opt_s ) {
+- (void) fprintf(stderr,msg_sfq);
++ (void) fputs(msg_sfq,stderr);
+ exit(ERR_VALUE) ;
+ }
+ if ( opt_l || opt_std ) {
+- (void) fprintf(stderr,msg_l);
++ (void) fputs(msg_l,stderr);
+ exit(ERR_VALUE) ;
+ }
+ mode = mode | PL_DIC ;
+@@ -1491,7 +1491,7 @@
+ break;
+ default:
+ if(init[0] == '/') {
+- fprintf(stderr,msg_abnl );
++ fputs(msg_abnl,stderr);
+ }
+ else {
+ fprintf(stderr,msg_abnls,init);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/Canna.git/commitdiff/7b3022f763f98369a16502102f706747c67dc5e7
More information about the pld-cvs-commit
mailing list