linux/tools/power/cpupower/bench
Anders Roxell 8a7e2d2ea0 cpupower: remove stringop-truncation waring
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]
  strncpy(config->governor, "ondemand", 8);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The normal method of passing the length of the destination buffer works
correctly here.

Fixes: 7fe2f6399a ("cpupowerutils - cpufrequtils extended with quite some features")
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
2018-08-28 15:46:12 -06:00
..
benchmark.c cpupowerutils: bench: trivial fix of spelling mistake on "average" 2016-04-28 16:02:29 +02:00
benchmark.h cpupowerutils: bench - ConfigStyle bugfixes 2011-07-29 18:35:38 +02:00
config.h cpupowerutils: bench - ConfigStyle bugfixes 2011-07-29 18:35:38 +02:00
cpufreq-bench_plot.sh cpupowerutils - cpufrequtils extended with quite some features 2011-07-29 18:35:36 +02:00
cpufreq-bench_script.sh cpupowerutils - cpufrequtils extended with quite some features 2011-07-29 18:35:36 +02:00
example.cfg cpupowerutils - cpufrequtils extended with quite some features 2011-07-29 18:35:36 +02:00
main.c cpupowerutils: bench - ConfigStyle bugfixes 2011-07-29 18:35:38 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
parse.c cpupower: remove stringop-truncation waring 2018-08-28 15:46:12 -06:00
parse.h cpupowerutils: bench - ConfigStyle bugfixes 2011-07-29 18:35:38 +02:00
README-BENCH cpupowerutils: bench: trivial fix of spelling mistake on "average" 2016-04-28 16:02:29 +02:00
system.c cpupowerutils: bench - Fix cpu online check 2017-11-15 08:37:35 -07:00
system.h cpupowerutils - cpufrequtils extended with quite some features 2011-07-29 18:35:36 +02:00