[Canna] Fix an error when building with -Werror=format-security. (#1037008)
Akira TAGOH
tagoh at fedoraproject.org
Tue Dec 10 03:41:28 UTC 2013
commit 1bbb229f9a8517a2bf6c840581689a9b3fa13ba5
Author: Akira TAGOH <tagoh at redhat.com>
Date: Tue Dec 10 12:41:20 2013 +0900
Fix an error when building with -Werror=format-security. (#1037008)
Canna-3.7p3-fix-format.patch | 35 +++++++++++++++++++++++++++++++++++
1 files changed, 35 insertions(+), 0 deletions(-)
---
diff --git a/Canna-3.7p3-fix-format.patch b/Canna-3.7p3-fix-format.patch
new file mode 100644
index 0000000..8ca9b20
--- /dev/null
+++ b/Canna-3.7p3-fix-format.patch
@@ -0,0 +1,35 @@
+diff -pruN Canna37p3.orig/cmd/catdic/can.c Canna37p3/cmd/catdic/can.c
+--- Canna37p3.orig/cmd/catdic/can.c 2003-02-02 04:34:20.000000000 +0900
++++ Canna37p3/cmd/catdic/can.c 2013-12-10 12:34:20.000000000 +0900
+@@ -1236,7 +1236,7 @@ char **argv;
+ break;
+ default:
+ if (init[0] == '/') {
+- (void)fprintf(stderr,msg_abnl);
++ (void)fprintf(stderr,"%s", msg_abnl);
+ } else {
+ (void)fprintf(stderr,msg_abnls,init);
+ }
+@@ -1297,11 +1297,11 @@ char **argv;
+
+ if ( opt_fq ) {
+ if ( opt_s ) {
+- (void) fprintf(stderr,msg_sfq);
++ (void) fprintf(stderr,"%s", msg_sfq);
+ exit(ERR_VALUE) ;
+ }
+ if ( opt_l || opt_std ) {
+- (void) fprintf(stderr,msg_l);
++ (void) fprintf(stderr,"%s", msg_l);
+ exit(ERR_VALUE) ;
+ }
+ mode = mode | PL_DIC ;
+@@ -1491,7 +1491,7 @@ int force;
+ break;
+ default:
+ if(init[0] == '/') {
+- fprintf(stderr,msg_abnl );
++ fprintf(stderr,"%s", msg_abnl );
+ }
+ else {
+ fprintf(stderr,msg_abnls,init);
More information about the scm-commits
mailing list