commit | daf9669bea30aa22d44671e0d9ce90234579e1db | [log] [tgz] |
---|---|---|
author | Bob Copeland <me@bobcopeland.com> | Fri Aug 22 09:18:01 2014 -0400 |
committer | John W. Linville <linville@tuxdriver.com> | Thu Aug 28 14:41:56 2014 -0400 |
tree | 24db392a0762b25fa9bb836c12b53b9cdacdcabf | |
parent | e6938ea4d56cca1dc7984428d3af79b27ce1db51 [diff] |
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>