Re: [PATCH] auxdisplay: panel: refactor deprecated strncpy

2023-09-14 Thread Kees Cook
On Mon, Sep 11, 2023 at 08:51:04PM +, Justin Stitt wrote: > `strncpy` is deprecated and as such we should prefer more robust and > less ambiguous interfaces. > > In this case, all of `press_str`, `repeat_str` and `release_str` are > explicitly marked as nonstring: > | struct { /* valid

[PATCH] auxdisplay: panel: refactor deprecated strncpy

2023-09-11 Thread Justin Stitt
`strncpy` is deprecated and as such we should prefer more robust and less ambiguous interfaces. In this case, all of `press_str`, `repeat_str` and `release_str` are explicitly marked as nonstring: | struct {/* valid when type == INPUT_TYPE_KBD */ | char press_str[sizeof(void *) +