clean up string constness issue

This commit is contained in:
Arvid Norberg 2012-01-29 23:05:07 +00:00
parent c77ca19140
commit 8d7940d47e
1 changed files with 2 additions and 1 deletions

View File

@ -2038,7 +2038,7 @@ namespace libtorrent
INVARIANT_CHECK;
m_net_interfaces.clear();
char* str = &net_interfaces[0];
char* str = strdup(net_interfaces.c_str());
while (str)
{
@ -2050,6 +2050,7 @@ namespace libtorrent
if (ec) continue;
m_net_interfaces.push_back(tcp::endpoint(a, 0));
}
free(str);
}
tcp::endpoint torrent::get_interface() const