1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 17:47:37 +00:00

(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

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 );
}
}