diff options
author | 2018-12-20 19:50:39 +0000 | |
---|---|---|
committer | 2018-12-20 19:50:39 +0000 | |
commit | 4998620f9591b0e735675da8b80292b14f88fc85 (patch) | |
tree | c88d7833d5521adcf38cd9ece2274f05514776ab | |
parent | use the machine hostname, not localhost, in mail.maildir.c (diff) | |
download | wireguard-openbsd-4998620f9591b0e735675da8b80292b14f88fc85.tar.xz wireguard-openbsd-4998620f9591b0e735675da8b80292b14f88fc85.zip |
use HOST_NAME_MAX+1 instead of MAXHOSTNAMELEN, also avoids including the
sys/param.h header
-rw-r--r-- | usr.sbin/smtpd/mail.maildir.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/mail.maildir.c b/usr.sbin/smtpd/mail.maildir.c index 6352aa745ef..e1796e0eb04 100644 --- a/usr.sbin/smtpd/mail.maildir.c +++ b/usr.sbin/smtpd/mail.maildir.c @@ -20,7 +20,6 @@ #include <sys/types.h> #include <sys/stat.h> -#include <sys/param.h> #include <ctype.h> #include <err.h> @@ -115,7 +114,7 @@ maildir_engine(const char *dirname, int junk) char extpath[PATH_MAX]; char subdir[PATH_MAX]; char filename[PATH_MAX]; - char hostname[MAXHOSTNAMELEN]; + char hostname[HOST_NAME_MAX+1]; char tmp[PATH_MAX]; char new[PATH_MAX]; |