diff --git a/libexec/talkd/talkd.c b/libexec/talkd/talkd.c index 669931b776c5..ea4837691600 100644 --- a/libexec/talkd/talkd.c +++ b/libexec/talkd/talkd.c @@ -49,6 +49,7 @@ static char sccsid[] = "@(#)talkd.c 8.1 (Berkeley) 6/4/93"; */ #include #include +#include #include #include #include @@ -68,7 +69,7 @@ int debug = 0; void timeout(); long lastmsgtime; -char hostname[32]; +char hostname[MAXHOSTNAMELEN]; #define TIMEOUT 30 #define MAXIDLE 120