diff options
Diffstat (limited to 'usr.bin/rdist/message.c')
-rw-r--r-- | usr.bin/rdist/message.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rdist/message.c b/usr.bin/rdist/message.c index 1e28bac9731..5ce2f0e5259 100644 --- a/usr.bin/rdist/message.c +++ b/usr.bin/rdist/message.c @@ -1,4 +1,4 @@ -/* $OpenBSD: message.c,v 1.21 2014/07/05 06:18:58 guenther Exp $ */ +/* $OpenBSD: message.c,v 1.22 2015/01/16 06:40:11 deraadt Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. @@ -473,7 +473,7 @@ msgsendnotify(MSGFACILITY *msgfac, int mtype, int flags, char *msgbuf) void checkhostname(void) { - static char mbuf[MAXHOSTNAMELEN]; + static char mbuf[HOST_NAME_MAX+1]; char *cp; if (!currenthost) { |