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

Skip to content
Commit 3a685d5f authored by Olav Haugan's avatar Olav Haugan Committed by Stephen Boyd
Browse files

gpu: ion: Replace strncpy with strlcpy



strncpy is unsafe because it does not guarantee
that the resultant string is NULL-terminated.

Replace strncpy with strlcpy and remove explicit
NULL-termination. Also correct allocation of
string buffer.

Change-Id: Id5075ef7b04f80e2bf828f52def329b926e9ec3f
Signed-off-by: default avatarOlav Haugan <ohaugan@codeaurora.org>
parent 3a666510
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