*** empty log message ***

This commit is contained in:
Arvid Norberg
2003-10-28 01:20:50 +00:00
parent c0f8ea13e4
commit 1bd0a8234a
11 changed files with 48 additions and 20 deletions

View File

@@ -564,8 +564,12 @@ namespace libtorrent
const unsigned char* c = p.begin();
while (c != p.end() && *c != 0)
{
if (!std::isprint(*c)) return std::string();
ret += *c;
if (std::isprint(*c))
ret += *c;
else if (*c <= 9)
ret += '0'+ *c;
else
return std::string();
++c;
}
if (c == p.end()) return std::string();