Larry Finger <Larry.Finger@xxxxxxxxxxxx> 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 <Larry.Finger@xxxxxxxxxxxx> 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