ath5k: ensure led name is null terminated
authorBob Copeland <me@bobcopeland.com>
Fri, 22 Aug 2014 13:18:01 +0000 (09:18 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 28 Aug 2014 18:41:56 +0000 (14:41 -0400)
commitdaf9669bea30aa22d44671e0d9ce90234579e1db
tree24db392a0762b25fa9bb836c12b53b9cdacdcabf
parente6938ea4d56cca1dc7984428d3af79b27ce1db51
ath5k: ensure led name is null terminated

Add the missing null termination after strncpy().

This isn't actually a buffer overflow in this case since we use
snprintf() appropriately to fill the buffer passed by the caller,
but in the interest of not turning this into a bug down the road,
go ahead and force termination here.

Found by Coverity.

Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/led.c