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:
parent
0faaaeaa9a
commit
e26a1783c6
1 changed files with 2 additions and 2 deletions
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue