biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / filesystems / jfsutils / hardening-format.patch
blobdd2a93a81ec6754b128105c6c0d16fff8bcb195d
1 --- a/fscklog/fscklog.c 2016-01-29 04:59:54.102223291 +0000
2 +++ b/fscklog/fscklog.c 2016-01-29 05:00:10.707552565 +0000
3 @@ -252,8 +252,8 @@
5 sprintf(debug_detail, " [%s:%d]\n", basename(file_name), line_number);
7 - printf(msg_string);
8 - printf(debug_detail);
9 + printf("%s", msg_string);
10 + printf("%s", debug_detail);
12 return 0;
14 --- a/fscklog/display.c 2016-01-29 05:05:42.582133444 +0000
15 +++ b/fscklog/display.c 2016-01-29 05:05:47.541231780 +0000
16 @@ -182,7 +182,7 @@
17 } else {
18 /* the record looks ok */
19 msg_txt = &log_entry[log_entry_pos];
20 - printf(msg_txt);
21 + printf("%s", msg_txt);
23 * set up for the next record
25 --- a/logdump/helpers.c 2016-01-29 05:06:26.081996021 +0000
26 +++ b/logdump/helpers.c 2016-01-29 05:06:43.097333425 +0000
27 @@ -95,8 +95,8 @@
29 sprintf(debug_detail, " [%s:%d]\n", file_name, line_number);
31 - printf(msg_string);
32 - printf(debug_detail);
33 + printf("%s", msg_string);
34 + printf("%s", debug_detail);
36 return 0;