Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed type cast for std::isprint, to avoid assert

git-svn-id: http://libtorrent.svn.sourceforge.net/svnroot/libtorrent/trunk@2626 a83610d8-ad2a-0410-a6ab-fc0612d85776
  • Loading branch information...
commit 14c9ce89f5ad6307dcbde9362e4d83e6e3d367f2 1 parent 10c1fe2
arvidn authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/lazy_bdecode.cpp
View
2  src/lazy_bdecode.cpp
@@ -376,7 +376,7 @@ namespace libtorrent
for (int i = 0; i < e.string_length(); ++i)
{
using namespace std;
- if (isprint(str[i])) continue;
+ if (isprint((unsigned char)str[i])) continue;
printable = false;
break;
}
Please sign in to comment.
Something went wrong with that request. Please try again.