perf: Fix strncpy() use, use strlcpy() instead of strncpy()
authorChen Gang <gang.chen@asianux.com>
Mon, 8 Apr 2013 04:06:44 +0000 (12:06 +0800)
committerIngo Molnar <mingo@kernel.org>
Mon, 8 Apr 2013 11:26:56 +0000 (13:26 +0200)
commit67012ab1d2ce871afea4ee55408f233f97d09d07
tree3f44d6c02233abb51848bfa991d571e86397b431
parentc97847d2f0eb77c806e650e04d9bbcf79fa05730
perf: 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/51624254.30301@asianux.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/trace/trace.c
This page took 0.025134 seconds and 5 git commands to generate.