overlay/sys-kernel/recoveryinitramfs/files/jfsutils/1.1.15/004_all_jfsutils-1.1.15-string-literal.patch

41 lines
1.2 KiB
Diff
Raw Permalink Normal View History

2013-10-29 18:26:14 +01:00
diff -up ./fscklog/display.c.tv ./fscklog/display.c
--- ./fscklog/display.c.tv 2011-07-31 23:44:52.113168266 +0200
+++ ./fscklog/display.c 2011-07-31 23:45:24.992319623 +0200
@@ -182,7 +182,7 @@ void dump_service_log()
} else {
/* the record looks ok */
msg_txt = &log_entry[log_entry_pos];
- printf(msg_txt);
+ printf("%s", msg_txt);
/*
* set up for the next record
*/
diff -up ./fscklog/fscklog.c.tv ./fscklog/fscklog.c
--- ./fscklog/fscklog.c.tv 2011-07-31 23:44:35.382005089 +0200
+++ ./fscklog/fscklog.c 2011-07-31 23:45:53.638605854 +0200
@@ -252,8 +252,8 @@ int v_send_msg(int msg_num, const char *
sprintf(debug_detail, " [%s:%d]\n", basename(file_name), line_number);
- printf(msg_string);
- printf(debug_detail);
+ printf("%s", msg_string);
+ printf("%s", debug_detail);
return 0;
}
diff -up ./logdump/helpers.c.tv2 ./logdump/helpers.c
--- ./logdump/helpers.c.tv2 2011-07-31 23:58:42.767444686 +0200
+++ ./logdump/helpers.c 2011-07-31 23:59:24.429874361 +0200
@@ -95,8 +95,8 @@ int v_fsck_send_msg(int msg_num, const c
sprintf(debug_detail, " [%s:%d]\n", file_name, line_number);
- printf(msg_string);
- printf(debug_detail);
+ printf("%s", msg_string);
+ printf("%s", debug_detail);
return 0;
}