On Tue, Jun 27, 2017 at 07:35:44PM +0200, Marek Marczykowski-Górecki wrote:
> GCC 7 warns (and thanks to -Werror, fails) about potential string
> truncation by snprintf in get_next_battery_file. Since the code already
> check if string is no longer than 4 chars, tell gcc about it.
>
> Signed-off-b
GCC 7 warns (and thanks to -Werror, fails) about potential string
truncation by snprintf in get_next_battery_file. Since the code already
check if string is no longer than 4 chars, tell gcc about it.
Signed-off-by: Marek Marczykowski-Górecki
---
tools/xenpmd/xenpmd.c | 8
1 file changed