fixed web seed for windows

This commit is contained in:
Arvid Norberg
2009-10-30 03:42:29 +00:00
parent 9d449caf84
commit c9392fe0fb
3 changed files with 19 additions and 0 deletions

View File

@@ -264,6 +264,13 @@ namespace libtorrent
return false;
}
void convert_path_to_posix(std::string& path)
{
for (std::string::iterator i = path.begin()
, end(path.end()); i != end; ++i)
if (*i == '\\') *i = '/';
}
std::string read_until(char const*& str, char delim, char const* end)
{
TORRENT_ASSERT(str <= end);