=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rdist/message.c,v retrieving revision 1.21 retrieving revision 1.22 diff -u -r1.21 -r1.22 --- src/usr.bin/rdist/message.c 2014/07/05 06:18:58 1.21 +++ src/usr.bin/rdist/message.c 2015/01/16 06:40:11 1.22 @@ -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 @@ void checkhostname(void) { - static char mbuf[MAXHOSTNAMELEN]; + static char mbuf[HOST_NAME_MAX+1]; char *cp; if (!currenthost) {