|
@@ -132,7 +132,7 @@ static char *default_bootup_tracer;
|
|
|
|
|
|
static int __init set_cmdline_ftrace(char *str)
|
|
|
{
|
|
|
- strncpy(bootup_tracer_buf, str, MAX_TRACER_SIZE);
|
|
|
+ strlcpy(bootup_tracer_buf, str, MAX_TRACER_SIZE);
|
|
|
default_bootup_tracer = bootup_tracer_buf;
|
|
|
/* We are using ftrace early, expand it */
|
|
|
ring_buffer_expanded = 1;
|
|
@@ -162,7 +162,7 @@ static char *trace_boot_options __initdata;
|
|
|
|
|
|
static int __init set_trace_boot_options(char *str)
|
|
|
{
|
|
|
- strncpy(trace_boot_options_buf, str, MAX_TRACER_SIZE);
|
|
|
+ strlcpy(trace_boot_options_buf, str, MAX_TRACER_SIZE);
|
|
|
trace_boot_options = trace_boot_options_buf;
|
|
|
return 0;
|
|
|
}
|