--- coda-6.9.5/coda-src/volutil/backup.cc.orig 2010-09-11 21:59:30.000000000 +0200 +++ coda-6.9.5/coda-src/volutil/backup.cc.orig 2010-09-11 22:53:56.000000000 +0200 @@ -86,10 +86,11 @@ static int Debug = 0; /* Global debugging flag */ static int Naptime = 30; /* Sleep period for PollLWP */ +#define HOST_NAME_LEN 100 struct hostinfo { bit32 address; /* Assume host IP addresses are 32 bits */ RPC2_Handle rpcid; /* should be -1 if connection is dead. */ - char name[36]; + char name[HOST_NAME_LEN]; } Hosts[N_SERVERIDS]; #define BADCONNECTION (RPC2_Handle) -1 @@ -1086,7 +1087,7 @@ CODA_ASSERT(hostent->h_length == 4); memcpy(&netaddress, hostent->h_addr, 4); HostAddress[sid] = Hosts[sid].address = ntohl(netaddress); - strncpy(Hosts[sid].name, hostent->h_name, 100); + strncpy(Hosts[sid].name, hostent->h_name, HOST_NAME_LEN); } } }