diff options
author | Len Brown <len.brown@intel.com> | 2020-03-19 18:33:12 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-04-08 09:08:39 +0200 |
commit | 0ba0ce3cbb866e1b8fe688a89a73a6d3861490a5 (patch) | |
tree | 5e3f7cc33104567f0eaae2200cad0be95849ecc7 /lib/test_xarray.c | |
parent | 7ebc1e53a46b5256438988bfec15a50b941b04f1 (diff) |
tools/power turbostat: Fix gcc build warnings
[ Upstream commit d8d005ba6afa502ca37ced5782f672c4d2fc1515 ]
Warning: ‘__builtin_strncpy’ specified bound 20 equals destination size
[-Wstringop-truncation]
reduce param to strncpy, to guarantee that a null byte is always copied
into destination buffer.
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'lib/test_xarray.c')
0 files changed, 0 insertions, 0 deletions