ftrace: Fix strncpy() use, use strlcpy() instead of strncpy()
authorChen Gang <gang.chen@asianux.com>
Mon, 8 Apr 2013 04:12:39 +0000 (12:12 +0800)
committerIngo Molnar <mingo@kernel.org>
Mon, 8 Apr 2013 11:26:56 +0000 (13:26 +0200)
commit75761cc15877c155b3849b4e0e0cb3f897faf471
tree8ba53195b51c031314c7454720af9d03ee9ec8f3
parent67012ab1d2ce871afea4ee55408f233f97d09d07
ftrace: Fix strncpy() use, use strlcpy() instead of strncpy()

For NUL terminated string we always need to set '\0' at the end.

Signed-off-by: Chen Gang <gang.chen@asianux.com>
Cc: rostedt@goodmis.org
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Link: http://lkml.kernel.org/r/516243B7.9020405@asianux.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/trace/ftrace.c