]> 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)
commita18928550d15b7809a9aab260d267fd7fc850593
treeff70f6f83eb9681670a6762848c8becddb77022a
parent2bb535277ebf19e704f630d99018c3e6fbc5b4b7
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