Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3069eab7 authored by Len Brown's avatar Len Brown Committed by Greg Kroah-Hartman
Browse files

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