fixed illegal iterator dereference

This commit is contained in:
Arvid Norberg
2007-02-05 17:10:34 +00:00
parent 8d5e14d557
commit 0019e9a2fb

View File

@@ -91,7 +91,7 @@ namespace libtorrent
catch (std::exception)
{
std::wstring ret;
for (const char* i = &*s.begin(); i < &*s.end(); ++i)
for (const char* i = &s[0]; i < &s[0] + s.size(); ++i)
{
wchar_t c;
c = '.';