diff options
-rw-r--r-- | kernel/trace/ftrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index aaea9cda8781..b10c0d90a6ff 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c | |||
@@ -2293,7 +2293,7 @@ __setup("ftrace_filter=", set_ftrace_filter); | |||
2293 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER | 2293 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER |
2294 | static int __init set_graph_function(char *str) | 2294 | static int __init set_graph_function(char *str) |
2295 | { | 2295 | { |
2296 | strncpy(ftrace_graph_buf, str, FTRACE_FILTER_SIZE); | 2296 | strlcpy(ftrace_graph_buf, str, FTRACE_FILTER_SIZE); |
2297 | return 1; | 2297 | return 1; |
2298 | } | 2298 | } |
2299 | __setup("ftrace_graph_filter=", set_graph_function); | 2299 | __setup("ftrace_graph_filter=", set_graph_function); |