aboutsummaryrefslogtreecommitdiff
path: root/libexec/ftpd/ftpd.c
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2000-11-19 12:46:16 +0000
committerKris Kennaway <kris@FreeBSD.org>2000-11-19 12:46:16 +0000
commit3fb3b78f0f947026de4184e64ec60191209d8380 (patch)
tree7eb7b373362423db541beee4a946f2486396c4dd /libexec/ftpd/ftpd.c
parent35cd89e7e59897f75dd6c9db93f4158ab0bc2a81 (diff)
downloadsrc-3fb3b78f0f947026de4184e64ec60191209d8380.tar.gz
src-3fb3b78f0f947026de4184e64ec60191209d8380.zip
Format string paranoia
Notes
Notes: svn path=/head/; revision=68901
Diffstat (limited to 'libexec/ftpd/ftpd.c')
-rw-r--r--libexec/ftpd/ftpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index c7c545b8f7f9..b77c133dbdae 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) {