aboutsummaryrefslogtreecommitdiffstats
path: root/plugin_button_exec.c
diff options
context:
space:
mode:
authorjmccrohan <jmccrohan@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2012-05-19 12:46:24 +0000
committerjmccrohan <jmccrohan@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2012-05-19 12:46:24 +0000
commit0070c296459dd3318b99125f803dc793fb8d72e7 (patch)
tree92526cfaaa236c9c42bd5e4a1083b2144ab06ee4 /plugin_button_exec.c
parentb0fd4a338357d019583624a1b346c3a7cd798f8f (diff)
downloadlcd4linux-0070c296459dd3318b99125f803dc793fb8d72e7.tar.gz
Mitigate format string exploits
error: format not a string literal and no format arguments [-Werror=format-security] Signed-off-by: Jonathan McCrohan <jmccrohan@gmail.com> git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1189 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'plugin_button_exec.c')
-rw-r--r--plugin_button_exec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin_button_exec.c b/plugin_button_exec.c
index 7685841..3cc306e 100644
--- a/plugin_button_exec.c
+++ b/plugin_button_exec.c
@@ -67,11 +67,11 @@ static void my_button_exec(RESULT * result, int argc, RESULT * argv[])
signal(SIGCHLD, SIG_IGN);
prog = R2S(argv[0]);
- info(prog);
+ info("%s", prog);
for (i = 1; i < argc; i++) {
arg = R2S(argv[i]);
args[i] = arg;
- info(arg);
+ info("%s", arg);
}
args[0] = prog;
args[i] = (char *) 0;
@@ -82,7 +82,7 @@ static void my_button_exec(RESULT * result, int argc, RESULT * argv[])
execvp(prog, args);
errsv = errno;
info("executing program failed");
- info(strerror(errsv));
+ info("%s", strerror(errsv));
exit(0);
} else if (pid == -1) {
info("weird error has occurred. couldn't fork.");