Home Home > GIT Browse > openSUSE-42.3
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Baumanis <fabian.baumanis@suse.com>2019-05-20 11:06:56 +0200
committerFabian Baumanis <fabian.baumanis@suse.com>2019-05-20 11:06:56 +0200
commit032bb97bfa602423444fb62107763e3308e151bc (patch)
treef0aac03f2a130239f44337666bbf095f172b68b0
parent0e13011b0d6efae38daebdc6b6689dc7b5152b72 (diff)
cpupower: remove stringop-truncation waring (bsc#1119086).
-rw-r--r--tools/power/cpupower/bench/parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/power/cpupower/bench/parse.c b/tools/power/cpupower/bench/parse.c
index f503fb53824e..16cbd94c8919 100644
--- a/tools/power/cpupower/bench/parse.c
+++ b/tools/power/cpupower/bench/parse.c
@@ -135,7 +135,7 @@ struct config *prepare_default_config()
config->cpu = 0;
config->prio = SCHED_HIGH;
config->verbose = 0;
- strncpy(config->governor, "ondemand", 8);
+ strncpy(config->governor, "ondemand", sizeof(config->governor));
config->output = stdout;