diff options
author | kris <kris@FreeBSD.org> | 2000-11-26 21:37:51 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2000-11-26 21:37:51 +0000 |
commit | 35eec2074d412e382aa410f7537032f06a046902 (patch) | |
tree | ad8bde1eb200164719976a07881dfe0f1c0df5a6 /contrib/telnet | |
parent | f568f6a3a3aeaa557f82e093a14e32eb1a7b47c7 (diff) | |
download | FreeBSD-src-35eec2074d412e382aa410f7537032f06a046902.zip FreeBSD-src-35eec2074d412e382aa410f7537032f06a046902.tar.gz |
Correct definition of MAXHOSTNAMELEN in ifdef'ed code.
Submitted by: Edwin Groothuis <mavetju@chello.nl>
PR: bin/22787
Diffstat (limited to 'contrib/telnet')
-rw-r--r-- | contrib/telnet/telnet/commands.c | 2 | ||||
-rw-r--r-- | contrib/telnet/telnetd/telnetd.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/contrib/telnet/telnet/commands.c b/contrib/telnet/telnet/commands.c index 2c7beca..4a360df 100644 --- a/contrib/telnet/telnet/commands.c +++ b/contrib/telnet/telnet/commands.c @@ -89,7 +89,7 @@ static const char sccsid[] = "@(#)commands.c 8.4 (Berkeley) 5/30/95"; #ifndef MAXHOSTNAMELEN -#define MAXHOSTNAMELEN 64 +#define MAXHOSTNAMELEN 256 #endif MAXHOSTNAMELEN #if defined(IPPROTO_IP) && defined(IP_TOS) diff --git a/contrib/telnet/telnetd/telnetd.c b/contrib/telnet/telnetd/telnetd.c index 6d7bcde..a5a7a03 100644 --- a/contrib/telnet/telnetd/telnetd.c +++ b/contrib/telnet/telnetd/telnetd.c @@ -823,7 +823,7 @@ terminaltypeok(s) } #ifndef MAXHOSTNAMELEN -#define MAXHOSTNAMELEN 64 +#define MAXHOSTNAMELEN 256 #endif /* MAXHOSTNAMELEN */ char *hostname; |