]> git.baikalelectronics.ru Git - kernel.git/commit
brcmfmac: dhd_sdio.c: Cleaning up missing null-terminate in conjunction with strncpy
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Sun, 12 Oct 2014 11:42:14 +0000 (13:42 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 23 Oct 2014 18:02:06 +0000 (14:02 -0400)
commit570c2cb54aefe8e2b6615f8651d4f80db6900908
treeff70f6f83eb9681670a6762848c8becddb77022a
parent2676814e99a1f7ae9f7546100ccc411092e5b221
brcmfmac: dhd_sdio.c: Cleaning up missing null-terminate in conjunction with strncpy

Replacing strncpy with strlcpy to avoid strings that lacks null terminate.
And changed from using strncat to strlcat to simplify code.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/dhd_sdio.c