Skip to content
Commit 0ba0ce3c authored by Len Brown's avatar Len Brown Committed by Greg Kroah-Hartman
Browse files

tools/power turbostat: Fix gcc build warnings

[ Upstream commit d8d005ba

 ]

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: default avatarLen Brown <len.brown@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 7ebc1e53
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment