On 03/09/2020 16:46, Aschref Ben-Thabet wrote:
From: Aschref Ben Thabet
strncpy
Please use the strncpy() style for functions in commit messages and
comments.
is unsafe if the terminating NULL
There are NULL pointers and NUL characters, see
https://www.man7.org/linux/man-pages/man7/ascii.7
From: Aschref Ben Thabet
strncpy is unsafe if the terminating NULL is missing, as it may copy
more characters than fit in the destination area
Replace it by the safer strlcpy() and fix the string
turncation warnings.
---
bsps/shared/dev/display/disp_hcms29xx.c | 3 +--
1 file changed, 1 inserti