diff options
-rw-r--r-- | logger.c | 2 | ||||
-rw-r--r-- | sysklogd/logger.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -156,7 +156,7 @@ extern int logger_main(int argc, char **argv) | |||
156 | } | 156 | } |
157 | 157 | ||
158 | openlog(name, option, (pri | LOG_FACMASK)); | 158 | openlog(name, option, (pri | LOG_FACMASK)); |
159 | syslog(pri, message); | 159 | syslog(pri, "%s", message); |
160 | closelog(); | 160 | closelog(); |
161 | 161 | ||
162 | return EXIT_SUCCESS; | 162 | return EXIT_SUCCESS; |
diff --git a/sysklogd/logger.c b/sysklogd/logger.c index 2c460cc07..8e341efe9 100644 --- a/sysklogd/logger.c +++ b/sysklogd/logger.c | |||
@@ -156,7 +156,7 @@ extern int logger_main(int argc, char **argv) | |||
156 | } | 156 | } |
157 | 157 | ||
158 | openlog(name, option, (pri | LOG_FACMASK)); | 158 | openlog(name, option, (pri | LOG_FACMASK)); |
159 | syslog(pri, message); | 159 | syslog(pri, "%s", message); |
160 | closelog(); | 160 | closelog(); |
161 | 161 | ||
162 | return EXIT_SUCCESS; | 162 | return EXIT_SUCCESS; |