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)
commit59dfdd92288e55bed374309a9944c3a95b4e13c9
treeff70f6f83eb9681670a6762848c8becddb77022a
parent47481d977cb2987ab363202c68a79ec1bccd357c
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