commit | 97101ebd9cb40b6326e3a8301ee4f26eca5b4924 | [log] [tgz] |
---|---|---|
author | Len Brown <len.brown@intel.com> | Thu Mar 19 18:33:12 2020 -0400 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Apr 13 10:45:00 2020 +0200 |
tree | 11f7181a764e1d4621573502c23b4a6503275cd9 | |
parent | 7b9d4492808eb3c3ba43f6391b138101a7e9e42e [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>