diff options
author | Bob Copeland <me@bobcopeland.com> | 2014-08-22 09:18:01 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-08-28 14:41:56 -0400 |
commit | daf9669bea30aa22d44671e0d9ce90234579e1db (patch) | |
tree | 24db392a0762b25fa9bb836c12b53b9cdacdcabf /tools/perf/scripts/python/syscall-counts.py | |
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>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions