Re: [PATCH] cpupower: remove stringop-truncation waring

2018-08-27 Thread Shuah Khan
On 08/21/2018 06:02 AM, Anders Roxell wrote: > The strncpy doesn't null terminate the string because the size is too > short by one byte. > > parse.c: In function ‘prepare_default_config’: > parse.c:148:2: warning: ‘strncpy’ output truncated before terminating > nul copying 8 bytes from a stri

[PATCH] cpupower: remove stringop-truncation waring

2018-08-21 Thread Anders Roxell
The strncpy doesn't null terminate the string because the size is too short by one byte. parse.c: In function ‘prepare_default_config’: parse.c:148:2: warning: ‘strncpy’ output truncated before terminating nul copying 8 bytes from a string of the same length [-Wstringop-truncation] strnc