diff options
author | 2013-04-08 12:12:39 +0800 | |
---|---|---|
committer | 2013-04-08 13:26:56 +0200 | |
commit | 75761cc15877c155b3849b4e0e0cb3f897faf471 (patch) | |
tree | 8ba53195b51c031314c7454720af9d03ee9ec8f3 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | perf: Fix strncpy() use, use strlcpy() instead of strncpy() (diff) | |
download | wireguard-linux-75761cc15877c155b3849b4e0e0cb3f897faf471.tar.xz wireguard-linux-75761cc15877c155b3849b4e0e0cb3f897faf471.zip |
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>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions