|
|
49e979c |
--- ./modules/clib/system.c.orig 2014-04-13 21:02:16.848951316 +0400
|
|
|
49e979c |
+++ ./modules/clib/system.c 2014-04-13 21:02:46.161439951 +0400
|
|
|
49e979c |
@@ -6097,7 +6097,7 @@
|
|
|
49e979c |
i = 0;
|
|
|
49e979c |
while ((f = f_parse_mf())) {
|
|
|
49e979c |
if (!addbuf(strlen(f_str))) goto errexit2;
|
|
|
49e979c |
- if (sprintf(bufptr, f_str) < 0) goto errexit;
|
|
|
49e979c |
+ if (sprintf(bufptr, "%s", f_str) < 0) goto errexit;
|
|
|
49e979c |
bufptr += strlen(bufptr);
|
|
|
49e979c |
*s = 0;
|
|
|
49e979c |
switch (f) {
|
|
|
49e979c |
@@ -6112,7 +6112,7 @@
|
|
|
49e979c |
bufptr += strlen(bufptr);
|
|
|
49e979c |
}
|
|
|
49e979c |
if (!addbuf(strlen(f_str))) goto errexit2;
|
|
|
49e979c |
- if (sprintf(bufptr, f_str) < 0) goto errexit;
|
|
|
49e979c |
+ if (sprintf(bufptr, "%s", f_str) < 0) goto errexit;
|
|
|
49e979c |
bufptr += strlen(bufptr);
|
|
|
49e979c |
f_init(NULL);
|
|
|
49e979c |
unlock_format();
|
|
|
49e979c |
--- ./modules/clib/clib.c.orig 2014-04-13 20:59:23.649051758 +0400
|
|
|
49e979c |
+++ ./modules/clib/clib.c 2014-04-13 21:01:42.258375147 +0400
|
|
|
49e979c |
@@ -2843,7 +2843,7 @@
|
|
|
49e979c |
f_init(format);
|
|
|
49e979c |
i = 0;
|
|
|
49e979c |
while ((f = f_parse_pf())) {
|
|
|
49e979c |
- if (fprintf(fp, f_str) < 0) goto errexit;
|
|
|
49e979c |
+ if (fprintf(fp, "%s", f_str) < 0) goto errexit;
|
|
|
49e979c |
if (f_var_wd)
|
|
|
49e979c |
coerce_int(xs[i++], &wdval);
|
|
|
49e979c |
if (f_var_prec)
|
|
|
49e979c |
@@ -2889,7 +2889,7 @@
|
|
|
49e979c |
}
|
|
|
49e979c |
if (ret < 0) goto errexit;
|
|
|
49e979c |
}
|
|
|
49e979c |
- if (fprintf(fp, f_str) < 0) goto errexit;
|
|
|
49e979c |
+ if (fprintf(fp, "%s", f_str) < 0) goto errexit;
|
|
|
49e979c |
f_init(NULL);
|
|
|
49e979c |
unlock_format();
|
|
|
49e979c |
free(format);
|
|
|
49e979c |
@@ -3115,7 +3115,7 @@
|
|
|
49e979c |
i = 0;
|
|
|
49e979c |
while ((f = f_parse_pf())) {
|
|
|
49e979c |
if (!addbuf(strlen(f_str))) goto errexit2;
|
|
|
49e979c |
- if (sprintf(bufptr, f_str) < 0) goto errexit;
|
|
|
49e979c |
+ if (sprintf(bufptr, "%s", f_str) < 0) goto errexit;
|
|
|
49e979c |
bufptr += strlen(bufptr);
|
|
|
49e979c |
if (f_var_wd)
|
|
|
49e979c |
coerce_int(xs[i++], &wdval);
|
|
|
49e979c |
@@ -3166,7 +3166,7 @@
|
|
|
49e979c |
bufptr += strlen(bufptr);
|
|
|
49e979c |
}
|
|
|
49e979c |
if (!addbuf(strlen(f_str))) goto errexit2;
|
|
|
49e979c |
- if (sprintf(bufptr, f_str) < 0) goto errexit;
|
|
|
49e979c |
+ if (sprintf(bufptr, "%s", f_str) < 0) goto errexit;
|
|
|
49e979c |
bufptr += strlen(bufptr);
|
|
|
49e979c |
f_init(NULL);
|
|
|
49e979c |
unlock_format();
|
|
|
49e979c |
--- ./src/qc.y.orig 2014-04-13 21:13:21.720093215 +0400
|
|
|
49e979c |
+++ ./src/qc.y 2014-04-13 21:13:35.938332366 +0400
|
|
|
49e979c |
@@ -2116,7 +2116,7 @@
|
|
|
49e979c |
|
|
|
49e979c |
if (Vflag) {
|
|
|
49e979c |
printf(signon, version, sysinfo, year);
|
|
|
49e979c |
- printf(copying);
|
|
|
49e979c |
+ printf("%s", copying);
|
|
|
49e979c |
printf(helpmsg, self);
|
|
|
49e979c |
exit(0);
|
|
|
49e979c |
}
|
|
|
49e979c |
--- ./src/qmparse.y.orig 2014-04-13 21:04:50.440515229 +0400
|
|
|
49e979c |
+++ ./src/qmparse.y 2014-04-13 21:05:12.791889007 +0400
|
|
|
49e979c |
@@ -2346,7 +2346,7 @@
|
|
|
49e979c |
if (!checkbrk) {
|
|
|
49e979c |
printf("\n");
|
|
|
49e979c |
printf(signon, version, sysinfo, year);
|
|
|
49e979c |
- printf(copying);
|
|
|
49e979c |
+ printf("%s", copying);
|
|
|
49e979c |
}
|
|
|
49e979c |
savepos();
|
|
|
49e979c |
return clean();
|
|
|
49e979c |
--- ./src/q.c.orig 2014-04-13 21:03:27.297126251 +0400
|
|
|
49e979c |
+++ ./src/q.c 2014-04-13 21:04:10.645850139 +0400
|
|
|
49e979c |
@@ -2228,7 +2228,7 @@
|
|
|
49e979c |
|
|
|
49e979c |
if (Vflag) {
|
|
|
49e979c |
printf(signon, version, sysinfo, year);
|
|
|
49e979c |
- printf(copying);
|
|
|
49e979c |
+ printf("%s", copying);
|
|
|
49e979c |
printf(helpmsg, self);
|
|
|
49e979c |
exit(0);
|
|
|
49e979c |
}
|
|
|
49e979c |
@@ -2341,7 +2341,7 @@
|
|
|
49e979c |
/* sign-on: */
|
|
|
49e979c |
printf(signon, version, sysinfo, year);
|
|
|
49e979c |
printf("\n");
|
|
|
49e979c |
- printf(terms);
|
|
|
49e979c |
+ printf("%s", terms);
|
|
|
49e979c |
}
|
|
|
49e979c |
|
|
|
49e979c |
/* install signal handlers: */
|