Commit 6625c7d1 authored by Olav Haugan's avatar Olav Haugan
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 395db38b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment