devilhorns pushed a commit to branch master.
commit 51db96e2021c7a3390f51c791641db96cd2d282f
Author: Chris Michael <[email protected]>
Date: Wed May 22 17:30:36 2013 +0100
Fix "warning: format not a string literal and no format arguments
[-Wformat-security]" compiler warning.
Signed-off-by: Chris Michael <[email protected]>
---
src/modules/cpufreq/e_mod_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/modules/cpufreq/e_mod_main.c b/src/modules/cpufreq/e_mod_main.c
index cfb8a31..d982396 100644
--- a/src/modules/cpufreq/e_mod_main.c
+++ b/src/modules/cpufreq/e_mod_main.c
@@ -566,7 +566,7 @@ _cpufreq_set_pstate(int min, int max, int turbo)
snprintf(buf, sizeof(buf),
"%s %s %i %i %i", cpufreq_config->set_exe_path, "pstate", min,
max, turbo);
- fprintf(stderr, buf);
+ fprintf(stderr, "%s", buf);
ret = system(buf);
if (ret != 0)
{
--
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may