(trunk libT) #2777 "some magnet links get misparsed" -- fixed in trunk for 1.81

This commit is contained in:
Charles Kerr 2010-01-21 05:10:00 +00:00
parent 0faaaeaa9a
commit e26a1783c6
1 changed files with 2 additions and 2 deletions

View File

@ -897,8 +897,8 @@ tr_hex_to_sha1( uint8_t * out, const char * in )
for( i=0; i<20; ++i )
{
const int hi = strchr( hex, *in++ ) - hex;
const int lo = strchr( hex, *in++ ) - hex;
const int hi = strchr( hex, tolower( *in++ ) ) - hex;
const int lo = strchr( hex, tolower( *in++ ) ) - hex;
*out++ = (uint8_t)( (hi<<4) | lo );
}
}