trim tracker urls and renamed isprint to is_print

This commit is contained in:
Arvid Norberg
2009-06-23 01:53:47 +00:00
parent fffda3c738
commit ad1e575a6e
8 changed files with 24 additions and 13 deletions

View File

@@ -391,7 +391,7 @@ namespace libtorrent
for (int i = 0; i < e.string_length(); ++i)
{
using namespace std;
if (isprint((unsigned char)str[i])) continue;
if (is_print((unsigned char)str[i])) continue;
printable = false;
break;
}