diff options
-rw-r--r-- | libexec/ftpd/ftpd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index c7c545b..b77c133 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -410,9 +410,9 @@ main(argc, argv, envp) } } if (error) { - syslog(LOG_ERR, gai_strerror(error)); + syslog(LOG_ERR, "%s", gai_strerror(error)); if (error == EAI_SYSTEM) - syslog(LOG_ERR, strerror(errno)); + syslog(LOG_ERR, "%s", strerror(errno)); exit(1); } if (res->ai_addr == NULL) { |