summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1994-12-15 01:21:06 +0000
committerache <ache@FreeBSD.org>1994-12-15 01:21:06 +0000
commit16912a5d080aff2140bf8220c06739848f43b1c1 (patch)
tree45b7b9e0778167e22c14996e3b4a485f90062c29 /libexec
parent113071f5164d2c85c065bb4b6c29bab916edd215 (diff)
downloadFreeBSD-src-16912a5d080aff2140bf8220c06739848f43b1c1.zip
FreeBSD-src-16912a5d080aff2140bf8220c06739848f43b1c1.tar.gz
Fix hostnames >32 chars
Submitted by: cstruble@singularity.bevc.blacksburg.va.us
Diffstat (limited to 'libexec')
-rw-r--r--libexec/talkd/talkd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/talkd/talkd.c b/libexec/talkd/talkd.c
index 669931b..ea48376 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 <sys/types.h>
#include <sys/socket.h>
+#include <sys/param.h>
#include <protocols/talkd.h>
#include <signal.h>
#include <syslog.h>
@@ -68,7 +69,7 @@ int debug = 0;
void timeout();
long lastmsgtime;
-char hostname[32];
+char hostname[MAXHOSTNAMELEN];
#define TIMEOUT 30
#define MAXIDLE 120
OpenPOWER on IntegriCloud