Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 336606
Collapse All | Expand All

(-)coda-6.9.5/coda-src/volutil/backup.cc.orig (-2 / +3 lines)
Lines 86-95 Link Here
86
static int Debug = 0;		   /* Global debugging flag */
86
static int Debug = 0;		   /* Global debugging flag */
87
static int Naptime = 30;	   /* Sleep period for PollLWP */
87
static int Naptime = 30;	   /* Sleep period for PollLWP */
88
88
89
#define HOST_NAME_LEN 100
89
struct hostinfo {
90
struct hostinfo {
90
    bit32	address;  /* Assume host IP addresses are 32 bits */
91
    bit32	address;  /* Assume host IP addresses are 32 bits */
91
    RPC2_Handle rpcid;	  /* should be -1 if connection is dead. */
92
    RPC2_Handle rpcid;	  /* should be -1 if connection is dead. */
92
    char	name[36];
93
    char	name[HOST_NAME_LEN];
93
} Hosts[N_SERVERIDS];
94
} Hosts[N_SERVERIDS];
94
95
95
#define BADCONNECTION	(RPC2_Handle) -1
96
#define BADCONNECTION	(RPC2_Handle) -1
Lines 1086-1092 Link Here
1086
		CODA_ASSERT(hostent->h_length == 4);
1087
		CODA_ASSERT(hostent->h_length == 4);
1087
		memcpy(&netaddress, hostent->h_addr, 4);
1088
		memcpy(&netaddress, hostent->h_addr, 4);
1088
		HostAddress[sid] = Hosts[sid].address = ntohl(netaddress);
1089
		HostAddress[sid] = Hosts[sid].address = ntohl(netaddress);
1089
		strncpy(Hosts[sid].name, hostent->h_name, 100);
1090
		strncpy(Hosts[sid].name, hostent->h_name, HOST_NAME_LEN);
1090
	    }
1091
	    }
1091
	}
1092
	}
1092
    }
1093
    }

Return to bug 336606