Fix hostnames >32 chars
Submitted by: cstruble@singularity.bevc.blacksburg.va.us
This commit is contained in:
parent
45d04cf11f
commit
58328669a3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=5111
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user