summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--logger.c2
-rw-r--r--sysklogd/logger.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/logger.c b/logger.c
index 2c460cc..8e341ef 100644
--- a/logger.c
+++ b/logger.c
@@ -156,7 +156,7 @@ extern int logger_main(int argc, char **argv)
}
openlog(name, option, (pri | LOG_FACMASK));
- syslog(pri, message);
+ syslog(pri, "%s", message);
closelog();
return EXIT_SUCCESS;
diff --git a/sysklogd/logger.c b/sysklogd/logger.c
index 2c460cc..8e341ef 100644
--- a/sysklogd/logger.c
+++ b/sysklogd/logger.c
@@ -156,7 +156,7 @@ extern int logger_main(int argc, char **argv)
}
openlog(name, option, (pri | LOG_FACMASK));
- syslog(pri, message);
+ syslog(pri, "%s", message);
closelog();
return EXIT_SUCCESS;