diff options
author | Chen Gang <[email protected]> | 2013-04-08 11:48:27 +0800 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2013-04-08 13:26:55 +0200 |
commit | c97847d2f0eb77c806e650e04d9bbcf79fa05730 (patch) | |
tree | b55f1ce399ed36116f5a39f735afc4693c85a9d6 /lib/cpu-notifier-error-inject.c | |
parent | dd9c086d9f507d02d5ba4d7c5eef4bb9518088b8 (diff) |
perf: Fix strncpy() use, always make sure it's NUL terminated
For NUL terminated string, always make sure that there's '\0' at the end.
In our case we need a return value, so still use strncpy() and
fix up the tail explicitly.
(strlcpy() returns the size, not the pointer)
Signed-off-by: Chen Gang <[email protected]>
Cc: [email protected] <[email protected]>
Cc: [email protected] <[email protected]>
Cc: [email protected] <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions