Search Linux Wireless

Re: [PATCH] rtl8187: Fix warning generated when strncpy() destination length matches the sixe argument

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux