Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 9607a869 authored by Chen Gang's avatar Chen Gang Committed by Steven Rostedt
Browse files

kernel: tracing: Use strlcpy instead of strncpy

Use strlcpy() instead of strncpy() as it will always add a '\0'
to the end of the string even if the buffer is smaller than what
is being copied.

Link: http://lkml.kernel.org/r/51624254.30301@asianux.com



Signed-off-by: default avatarChen Gang <gang.chen@asianux.com>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 22f45649
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment