windows fix

This commit is contained in:
Arvid Norberg 2008-05-04 16:10:13 +00:00
parent c7e6c04705
commit 010d3b6e75
2 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ namespace libtorrent
{
address interface_address;
address netmask;
char name[32];
char name[64];
};
struct ip_route
@ -51,7 +51,7 @@ namespace libtorrent
address destination;
address netmask;
address gateway;
char name[32];
char name[64];
};
// returns a list of the configured IP interfaces

View File

@ -558,7 +558,7 @@ namespace libtorrent
r.source = address::from_string(adapter->IpAddressList.IpAddress.String, ec);
r.gateway = address::from_string(adapter->GatewayList.IpAddress.String, ec);
r.netmask = address::from_string(adapter->IpAddressList.IpMask.String, ec);
strcpy(r.name, adapter->AdapterName);
strncpy(r.name, adapter->AdapterName, sizeof(ip_route::name));
if (ec)
{