diff options
author | kris <kris@FreeBSD.org> | 2000-11-19 12:46:16 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2000-11-19 12:46:16 +0000 |
commit | 33514b48b8b3f420fc7c832a3e9e5982a4adbe8e (patch) | |
tree | 66ad43411fd5ac2d480ca393dd7a5dc7594ab13d /libexec/ftpd/ftpd.c | |
parent | da6f7f0f11cab2cfd8cdef0e009c1bca94eea240 (diff) | |
download | FreeBSD-src-33514b48b8b3f420fc7c832a3e9e5982a4adbe8e.zip FreeBSD-src-33514b48b8b3f420fc7c832a3e9e5982a4adbe8e.tar.gz |
Format string paranoia
Diffstat (limited to 'libexec/ftpd/ftpd.c')
-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) { |