Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362519
b: refs/heads/master
c: 67012ab
h: refs/heads/master
i:
  362517: e5ead2d
  362515: d823c33
  362511: a977255
v: v3
  • Loading branch information
Chen Gang authored and Ingo Molnar committed Apr 8, 2013
1 parent 15aad10 commit 0f3885f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c97847d2f0eb77c806e650e04d9bbcf79fa05730
refs/heads/master: 67012ab1d2ce871afea4ee55408f233f97d09d07
4 changes: 2 additions & 2 deletions trunk/kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 0f3885f

Please sign in to comment.