1 |
mitya |
334990 |
diff -urN texlive-20120701-source~/utils/chktex/chktex-1.6.6/ChkTeX.c texlive-20120701-source/utils/chktex/chktex-1.6.6/ChkTeX.c |
2 |
|
|
--- texlive-20120701-source~/utils/chktex/chktex-1.6.6/ChkTeX.c 2012-04-10 03:21:16.000000000 +0400 |
3 |
|
|
+++ texlive-20120701-source/utils/chktex/chktex-1.6.6/ChkTeX.c 2012-12-25 01:56:34.028370678 +0400 |
4 |
|
|
@@ -350,7 +350,7 @@ |
5 |
|
|
} |
6 |
|
|
|
7 |
|
|
if (!Quiet || LicenseOnly) |
8 |
|
|
- fprintf(stderr, Banner); |
9 |
|
|
+ fprintf(stderr, "%s", Banner); |
10 |
|
|
|
11 |
|
|
if (CurArg == argc) |
12 |
|
|
UsingStdIn = TRUE; |
13 |
|
|
@@ -368,7 +368,7 @@ |
14 |
|
|
|
15 |
|
|
if ((UsingStdIn && StdInTTY && !Quiet) || LicenseOnly) |
16 |
|
|
{ |
17 |
|
|
- fprintf(stderr, BigBanner); |
18 |
|
|
+ fprintf(stderr, "%s", BigBanner); |
19 |
|
|
} |
20 |
|
|
|
21 |
|
|
if (!StdOutTTY && PipeOutputFormat) |
22 |
|
|
@@ -376,7 +376,7 @@ |
23 |
|
|
|
24 |
|
|
if (LicenseOnly) |
25 |
|
|
{ |
26 |
|
|
- fprintf(stderr, Distrib); |
27 |
|
|
+ fprintf(stderr, "%s", Distrib); |
28 |
|
|
} |
29 |
|
|
else |
30 |
|
|
{ |
31 |
|
|
@@ -953,7 +953,7 @@ |
32 |
|
|
nextc = ParseBoolArg(&HeadErrOut, &optarg); |
33 |
|
|
break; |
34 |
|
|
case 'W': |
35 |
|
|
- printf(Banner); |
36 |
|
|
+ printf("%s", Banner); |
37 |
|
|
exit(EXIT_SUCCESS); |
38 |
|
|
case '?': |
39 |
|
|
default: |
40 |
|
|
diff -urN texlive-20120701-source~/texk/devnag/src/devnag.c texlive-20120701-source/texk/devnag/src/devnag.c |
41 |
|
|
--- texlive-20120701-source~/texk/devnag/src/devnag.c 2010-05-22 09:13:22.000000000 +0400 |
42 |
|
|
+++ texlive-20120701-source/texk/devnag/src/devnag.c 2012-12-25 14:57:25.357933241 +0400 |
43 |
|
|
@@ -2395,7 +2395,7 @@ |
44 |
|
|
void err_ill(const char *str) { |
45 |
|
|
fprintf(stderr, "Error: illegal character(s) \"%s\" detected at line %d:\n", |
46 |
|
|
str, linenumber); |
47 |
|
|
- fprintf(stderr, inbuf); |
48 |
|
|
+ fprintf(stderr, "%s", inbuf); |
49 |
|
|
exit(1); |
50 |
|
|
} |
51 |
|
|
|
52 |
|
|
diff -urN texlive-20120701-source~/texk/dvidvi/dvidvi.c texlive-20120701-source/texk/dvidvi/dvidvi.c |
53 |
|
|
--- texlive-20120701-source~/texk/dvidvi/dvidvi.c 2011-09-29 16:07:00.000000000 +0400 |
54 |
|
|
+++ texlive-20120701-source/texk/dvidvi/dvidvi.c 2012-12-25 14:59:00.854564760 +0400 |
55 |
|
|
@@ -331,7 +331,7 @@ |
56 |
|
|
* Print a usage error messsage, and quit. |
57 |
|
|
*/ |
58 |
|
|
static void usage(void) { |
59 |
|
|
- (void)fprintf(stderr,banner); |
60 |
|
|
+ (void)fprintf(stderr,"%s",banner); |
61 |
|
|
(void)fprintf(stderr,"Usage: dvidvi [options] input[.dvi] [output]\n"); |
62 |
|
|
(void)fprintf(stderr,"where options are:\n"); |
63 |
|
|
(void)fprintf(stderr," [-f n] first page printed [-l n] last page printed\n"); |
64 |
|
|
@@ -810,7 +810,7 @@ |
65 |
|
|
} /* else argument with '-' */ |
66 |
|
|
} /* for */ |
67 |
|
|
if (*iname == 0) { |
68 |
|
|
- (void)fprintf(stderr, banner) ; |
69 |
|
|
+ (void)fprintf(stderr, "%s", banner) ; |
70 |
|
|
error("! no input file specified"); |
71 |
|
|
} |
72 |
|
|
/* Inserted by djc@dsmail.hmi.de 3.8.1994 */ |
73 |
|
|
@@ -821,7 +821,7 @@ |
74 |
|
|
} |
75 |
|
|
|
76 |
|
|
if (*oname != 0 && !quiet) { |
77 |
|
|
- (void)fprintf(stderr, banner) ; |
78 |
|
|
+ (void)fprintf(stderr, "%s", banner) ; |
79 |
|
|
(void)fprintf(stderr, "%s -> %s\n",iname,oname); |
80 |
|
|
temp = nextstring ; |
81 |
|
|
} |
82 |
|
|
diff -urN texlive-20120701-source~/texk/ps2pkm/objects.h texlive-20120701-source/texk/ps2pkm/objects.h |
83 |
|
|
--- texlive-20120701-source~/texk/ps2pkm/objects.h 2009-06-22 18:33:57.000000000 +0400 |
84 |
|
|
+++ texlive-20120701-source/texk/ps2pkm/objects.h 2012-12-25 15:05:34.311379602 +0400 |
85 |
|
|
@@ -232,7 +232,7 @@ |
86 |
|
|
/*SHARED*/ |
87 |
|
|
/* NDW: personally, I want to see status and error messages! */ |
88 |
|
|
#define IfTrace0(condition,model) \ |
89 |
|
|
- {if (condition) printf(model);} |
90 |
|
|
+ {if (condition) printf("%s", model);} |
91 |
|
|
#define IfTrace1(condition,model,arg0) \ |
92 |
|
|
{if (condition) printf(model,arg0);} |
93 |
|
|
#define IfTrace2(condition,model,arg0,arg1) \ |
94 |
|
|
diff -urN texlive-20120701-source~/texk/web2c/cwebboot.cin texlive-20120701-source/texk/web2c/cwebboot.cin |
95 |
|
|
--- texlive-20120701-source~/texk/web2c/cwebboot.cin 2010-01-18 19:11:52.000000000 +0300 |
96 |
|
|
+++ texlive-20120701-source/texk/web2c/cwebboot.cin 2012-12-25 02:39:43.040848745 +0400 |
97 |
|
|
@@ -1084,7 +1084,7 @@ |
98 |
|
|
fatal(const char*s,const char*t) |
99 |
|
|
#line 1182 "cwebdir/common.w" |
100 |
|
|
{ |
101 |
|
|
-if(*s)printf(s); |
102 |
|
|
+if(*s)printf("%s",s); |
103 |
|
|
err_print(t); |
104 |
|
|
history= fatal_message;exit(wrap_up()); |
105 |
|
|
} |
106 |
|
|
diff -urN texlive-20120701-source~/texk/web2c/cwebdir/common.c texlive-20120701-source/texk/web2c/cwebdir/common.c |
107 |
|
|
--- texlive-20120701-source~/texk/web2c/cwebdir/common.c 2006-01-18 00:41:51.000000000 +0300 |
108 |
|
|
+++ texlive-20120701-source/texk/web2c/cwebdir/common.c 2012-12-25 02:33:17.405363875 +0400 |
109 |
|
|
@@ -1063,7 +1063,7 @@ |
110 |
|
|
fatal(s,t) |
111 |
|
|
char*s,*t; |
112 |
|
|
{ |
113 |
|
|
-if(*s)printf(s); |
114 |
|
|
+if(*s)printf("%s", s); |
115 |
|
|
err_print(t); |
116 |
|
|
history= fatal_message;exit(wrap_up()); |
117 |
|
|
} |
118 |
|
|
diff -urN texlive-20120701-source~/texk/web2c/cwebdir/common.w texlive-20120701-source/texk/web2c/cwebdir/common.w |
119 |
|
|
--- texlive-20120701-source~/texk/web2c/cwebdir/common.w 2008-04-28 13:22:39.000000000 +0400 |
120 |
|
|
+++ texlive-20120701-source/texk/web2c/cwebdir/common.w 2012-12-25 02:34:05.737672340 +0400 |
121 |
|
|
@@ -1180,7 +1180,7 @@ |
122 |
|
|
fatal(s,t) |
123 |
|
|
char *s,*t; |
124 |
|
|
{ |
125 |
|
|
- if (*s) printf(s); |
126 |
|
|
+ if (*s) printf("%s", s); |
127 |
|
|
err_print(t); |
128 |
|
|
history=fatal_message; exit(wrap_up()); |
129 |
|
|
} |
130 |
|
|
diff -urN texlive-20120701-source~/texk/web2c/cwebdir/cweave.w texlive-20120701-source/texk/web2c/cwebdir/cweave.w |
131 |
|
|
--- texlive-20120701-source~/texk/web2c/cwebdir/cweave.w 2008-04-28 13:22:39.000000000 +0400 |
132 |
|
|
+++ texlive-20120701-source/texk/web2c/cwebdir/cweave.w 2012-12-25 15:09:36.226037765 +0400 |
133 |
|
|
@@ -1784,7 +1784,7 @@ |
134 |
|
|
print_cat(c) /* symbolic printout of a category */ |
135 |
|
|
eight_bits c; |
136 |
|
|
{ |
137 |
|
|
- printf(cat_name[c]); |
138 |
|
|
+ printf("%s", cat_name[c]); |
139 |
|
|
} |
140 |
|
|
|
141 |
|
|
@ The token lists for translated \TEX/ output contain some special control |
142 |
|
|
diff -urN texlive-20120701-source~/texk/web2c/luatexdir/image/writeimg.w texlive-20120701-source/texk/web2c/luatexdir/image/writeimg.w |
143 |
|
|
--- texlive-20120701-source~/texk/web2c/luatexdir/image/writeimg.w 2012-05-22 14:53:47.000000000 +0400 |
144 |
|
|
+++ texlive-20120701-source/texk/web2c/luatexdir/image/writeimg.w 2012-12-25 15:35:24.381313483 +0400 |
145 |
|
|
@@ -644,7 +644,7 @@ |
146 |
|
|
sprintf(s, "/BBox [%.8f %.8f %.8f %.8f]\n", int2bp(img_bbox(idict)[0]), |
147 |
|
|
int2bp(img_bbox(idict)[1]), int2bp(img_bbox(idict)[2]), |
148 |
|
|
int2bp(img_bbox(idict)[3])); |
149 |
|
|
- pdf_printf(pdf, stripzeros(s)); |
150 |
|
|
+ pdf_printf(pdf, "%s", stripzeros(s)); |
151 |
|
|
pdf_begin_stream(pdf); |
152 |
|
|
if (img_pdfstream_stream(idict) != NULL) |
153 |
|
|
pdf_puts(pdf, img_pdfstream_stream(idict)); |
154 |
|
|
diff -urN texlive-20120701-source~/texk/web2c/luatexdir/tex/printing.w texlive-20120701-source/texk/web2c/luatexdir/tex/printing.w |
155 |
|
|
--- texlive-20120701-source~/texk/web2c/luatexdir/tex/printing.w 2012-05-21 19:21:54.000000000 +0400 |
156 |
|
|
+++ texlive-20120701-source/texk/web2c/luatexdir/tex/printing.w 2012-12-25 15:37:10.333020089 +0400 |
157 |
|
|
@@ -391,7 +391,7 @@ |
158 |
|
|
print_char(' '); |
159 |
|
|
print_int(int_par(day_code)); |
160 |
|
|
print_char(' '); |
161 |
|
|
- fprintf(log_file, months[month]); |
162 |
|
|
+ fprintf(log_file, "%s", months[month]); |
163 |
|
|
print_char(' '); |
164 |
|
|
print_int(int_par(year_code)); |
165 |
|
|
print_char(' '); |
166 |
|
|
@@ -418,7 +418,7 @@ |
167 |
|
|
@ @c |
168 |
|
|
void print_version_banner(void) |
169 |
|
|
{ |
170 |
|
|
- fprintf(term_out, ptexbanner); |
171 |
|
|
+ fprintf(term_out, "%s", ptexbanner); |
172 |
|
|
} |
173 |
|
|
|
174 |
|
|
@ The procedure |print_esc| prints a string that is preceded by |
175 |
|
|
diff -urN texlive-20120701-source~/texk/web2c/omegafonts/error_routines.c texlive-20120701-source/texk/web2c/omegafonts/error_routines.c |
176 |
|
|
--- texlive-20120701-source~/texk/web2c/omegafonts/error_routines.c 2009-11-10 13:27:09.000000000 +0300 |
177 |
|
|
+++ texlive-20120701-source/texk/web2c/omegafonts/error_routines.c 2012-12-25 15:43:05.518217399 +0400 |
178 |
|
|
@@ -36,7 +36,7 @@ |
179 |
|
|
lex_error_0(const_string fmt) |
180 |
|
|
{ |
181 |
|
|
fprintf(stderr, "line %d (lexing): ", line_number); |
182 |
|
|
- fprintf(stderr, fmt); |
183 |
|
|
+ fprintf(stderr, "%s", fmt); |
184 |
|
|
fprintf(stderr, "\n"); |
185 |
|
|
} |
186 |
|
|
|
187 |
|
|
@@ -68,7 +68,7 @@ |
188 |
|
|
yyerror(const_string fmt) |
189 |
|
|
{ |
190 |
|
|
fprintf(stderr, "line %d (parsing): ", line_number); |
191 |
|
|
- fprintf(stderr, fmt); |
192 |
|
|
+ fprintf(stderr, "%s", fmt); |
193 |
|
|
fprintf(stderr, "\n"); |
194 |
|
|
} |
195 |
|
|
|
196 |
|
|
@@ -77,7 +77,7 @@ |
197 |
|
|
warning_0(const_string fmt) |
198 |
|
|
{ |
199 |
|
|
fprintf(stderr, "line %d (warning): ", line_number); |
200 |
|
|
- fprintf(stderr, fmt); |
201 |
|
|
+ fprintf(stderr, "%s", fmt); |
202 |
|
|
fprintf(stderr, "\n"); |
203 |
|
|
} |
204 |
|
|
|
205 |
|
|
@@ -125,7 +125,7 @@ |
206 |
|
|
fatal_error_0(const_string fmt) |
207 |
|
|
{ |
208 |
|
|
fprintf(stderr, "line %d (fatal): ", line_number); |
209 |
|
|
- fprintf(stderr, fmt); |
210 |
|
|
+ fprintf(stderr, "%s", fmt); |
211 |
|
|
fprintf(stderr, "\n"); |
212 |
|
|
exit(1); |
213 |
|
|
} |
214 |
|
|
@@ -161,7 +161,7 @@ |
215 |
|
|
internal_error_0(const_string fmt) |
216 |
|
|
{ |
217 |
|
|
fprintf(stderr, "line %d (internal): ", line_number); |
218 |
|
|
- fprintf(stderr, fmt); |
219 |
|
|
+ fprintf(stderr, "%s", fmt); |
220 |
|
|
fprintf(stderr, "\n"); |
221 |
|
|
exit(2); |
222 |
|
|
} |
223 |
|
|
diff -urN texlive-20120701-source~/texk/web2c/omegafonts/out_routines.c texlive-20120701-source/texk/web2c/omegafonts/out_routines.c |
224 |
|
|
--- texlive-20120701-source~/texk/web2c/omegafonts/out_routines.c 2009-11-10 13:27:09.000000000 +0300 |
225 |
|
|
+++ texlive-20120701-source/texk/web2c/omegafonts/out_routines.c 2012-12-25 15:43:57.453575756 +0400 |
226 |
|
|
@@ -383,5 +383,5 @@ |
227 |
|
|
void |
228 |
|
|
out(const_string sval) |
229 |
|
|
{ |
230 |
|
|
- fprintf(file_output, sval); |
231 |
|
|
+ fprintf(file_output, "%s", sval); |
232 |
|
|
} |
233 |
|
|
diff -urN texlive-20120701-source~/texk/web2c/tiedir/tie.c texlive-20120701-source/texk/web2c/tiedir/tie.c |
234 |
|
|
--- texlive-20120701-source~/texk/web2c/tiedir/tie.c 2006-01-18 00:41:51.000000000 +0300 |
235 |
|
|
+++ texlive-20120701-source/texk/web2c/tiedir/tie.c 2012-12-25 15:21:13.384307053 +0400 |
236 |
|
|
@@ -34,7 +34,7 @@ |
237 |
|
|
#define new_line(v)fputc('\n',v) |
238 |
|
|
#define term_new_line new_line(term_out) \ |
239 |
|
|
|
240 |
|
|
-#define print_ln(v){fprintf(term_out,v);term_new_line;} \ |
241 |
|
|
+#define print_ln(v){fprintf(term_out,"%s",v);term_new_line;} \ |
242 |
|
|
|
243 |
|
|
#define print2_ln(a,b){print2(a,b);term_new_line;} |
244 |
|
|
#define print3_ln(a,b,c){print3(a,b,c);term_new_line;} \ |
245 |
|
|
diff -urN texlive-20120701-source~/texk/web2c/tiedir/tie.w texlive-20120701-source/texk/web2c/tiedir/tie.w |
246 |
|
|
--- texlive-20120701-source~/texk/web2c/tiedir/tie.w 2009-03-09 11:29:33.000000000 +0300 |
247 |
|
|
+++ texlive-20120701-source/texk/web2c/tiedir/tie.w 2012-12-25 15:30:30.256452565 +0400 |
248 |
|
|
@@ -465,7 +465,7 @@ |
249 |
|
|
@d new_line(v) fputc('\n',v) /* start new line */ |
250 |
|
|
@d term_new_line new_line(term_out) |
251 |
|
|
/* start new line of the terminal */ |
252 |
|
|
-@d print_ln(v) {fprintf(term_out,v);term_new_line;} |
253 |
|
|
+@d print_ln(v) {fprintf(term_out,"%s",v);term_new_line;} |
254 |
|
|
/* `|print|' and then start new line */ |
255 |
|
|
@d print2_ln(a,b) {print2(a,b);term_new_line;} /* same with two arguments */ |
256 |
|
|
@d print3_ln(a,b,c) {print3(a,b,c);term_new_line;} |