Larry Finger <[email protected]> wrote:

> In gcc8, when the 3rd argument (size) of a call to strncpy() matches the
> length of the first argument, the compiler warns of the possibility of an
> unterminated string. Using strlcpy() forces a null at the end.
> 
> Signed-off-by: Larry Finger <[email protected]>

Patch applied to wireless-drivers-next.git, thanks.

199ba9faca90 rtl8187: Fix warning generated when strncpy() destination length 
matches the sixe argument

-- 
https://patchwork.kernel.org/patch/10570639/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

Reply via email to