summaryrefslogtreecommitdiff
path: root/app-i18n/freewnn/files/freewnn-Wformat-security.patch
blob: b5b68314060d717bb890493ca05b156e3387f826 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
--- a/Wnn/uum/jhlp.c
+++ b/Wnn/uum/jhlp.c
@@ -1135,7 +1135,7 @@
       else
         {
           signal (SIGCHLD, SIG_IGN);
-          printf (MSG_GET (3));
+          printf ("%s", MSG_GET (3));
           /*
              printf("\r\nuumを終わります。\r\n");
            */
@@ -1212,8 +1212,8 @@
 
   if ((buf = (unsigned char *) malloc (maxchg * 4)) == NULL)
     {
-      printf (MSG_GET (2));
-      printf (MSG_GET (3));
+      printf ("%s", MSG_GET (2));
+      printf ("%s", MSG_GET (3));
       /*
          printf("malloc に失敗しました。uumを終わります。\r\n");
        */
--- a/Wnn/uum/jis_in.c
+++ b/Wnn/uum/jis_in.c
@@ -64,7 +64,7 @@
 
 completely_start:
   throw_c (0);                  /* モード表示の後に出す */
-  printf (MSG_GET (6));
+  printf ("%s", MSG_GET (6));
   /*
      printf("JISコード: ");
    */
--- a/Wnn/uum/jutil.c
+++ b/Wnn/uum/jutil.c
@@ -489,7 +489,7 @@
   /*
      printf("只今、辞書を読み込んでいます。");
    */
-  printf (MSG_GET (60));
+  printf ("%s", MSG_GET (60));
   flush ();
 
   if ((id = jl_dic_add (bun_data_, fname, hfname, 0, prio, rdonly, hrdonly, NULL, NULL, yes_or_no_or_newline, print_msg1)) == -1 && wnn_errorno != -1)
@@ -571,7 +571,7 @@
   int x;
   throw_c (0);
   clr_line ();
-  printf (string);
+  printf ("%s", string);
   flush ();
   for (;;)
     {
--- a/Wnn/uum/kensaku.c
+++ b/Wnn/uum/kensaku.c
@@ -112,7 +112,7 @@
       u_s_on ();
       w_printf (kana_buf, maxlength - strlen (MSG_GET (27)) - 2);
       u_s_off ();
-      printf (MSG_GET (27));
+      printf ("%s", MSG_GET (27));
       flush ();
       keyin ();
       return (NULL);
--- a/Wnn/uum/kuten.c
+++ b/Wnn/uum/kuten.c
@@ -63,7 +63,7 @@
 
 completely_start:
   throw_c (0);                  /* モード表示の後に出す */
-  printf (MSG_GET (7));
+  printf ("%s", MSG_GET (7));
   /*
      printf("区点 : ");
    */
--- a/Wnn/uum/prologue.c
+++ b/Wnn/uum/prologue.c
@@ -144,7 +144,7 @@
       /*
          fprintf(stderr,"初期化でmalloc不能。\n");
        */
-      fprintf (stderr, MSG_GET (2));
+      fprintf (stderr, "%s", MSG_GET (2));
       return (-1);
     }
 
--- a/Wnn/uum/screen.c
+++ b/Wnn/uum/screen.c
@@ -547,7 +547,7 @@
 {
   push_cursor ();
   throw_c (0);
-  printf (msg);
+  printf ("%s", msg);
   pop_cursor ();
   flush ();
 }
--- a/Wnn/uum/sdefine.h
+++ b/Wnn/uum/sdefine.h
@@ -191,8 +191,8 @@
 
 
 #define flush() fflush(stdout)
-#define print_msg(X) {push_cursor();throw_c(0); clr_line();printf(X);flush();pop_cursor();}
-#define print_msg_getc(X) {push_cursor();throw_c(0); clr_line();printf(X);flush();keyin();pop_cursor();}
+#define print_msg(X) {push_cursor();throw_c(0); clr_line();printf("%s", X);flush();pop_cursor();}
+#define print_msg_getc(X) {push_cursor();throw_c(0); clr_line();printf("%s", X);flush();keyin();pop_cursor();}
 
 
 #define UNDER_LINE_MODE (0x02 | 0x08 | 0x20)
--- a/Wnn/uum/select_ele.c
+++ b/Wnn/uum/select_ele.c
@@ -224,7 +224,7 @@
 
   throw_c (0);
   clr_line ();
-  printf (msg);
+  printf ("%s", msg);
   for (k = dd[cc]; k < dd[cc + 1]; k++)
     {
       cp = findcp (k, cc);
--- a/Wnn/uum/termio.c
+++ b/Wnn/uum/termio.c
@@ -100,7 +100,7 @@
 
   if ((strlen (Term_Name) > 2) && (strcmp (Term_Name + (strlen (Term_Name) - 2), "-j") == 0))
     {
-      fprintf (stderr, MSG_GET (4));
+      fprintf (stderr, "%s", MSG_GET (4));
       /*
          fprintf(stderr,"Uum:uumからuumはおこせません。\n");
        */
--- a/Wnn/uum/wnnrc_op.c
+++ b/Wnn/uum/wnnrc_op.c
@@ -754,7 +754,7 @@
       return fp;
     }
 error:
-  fprintf (stderr, MSG_GET (14));
+  fprintf (stderr, "%s", MSG_GET (14));
 /*
     fprintf(stderr , "uumrc ファイルがありません。");
 */