mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
ascii conversion fix
This commit is contained in:
parent
1d43fbea7f
commit
9c6264d4b8
1 changed files with 2 additions and 1 deletions
|
@ -92,7 +92,8 @@ char * tr_clientForId( uint8_t * id )
|
||||||
{
|
{
|
||||||
if( id[0] == 'T' )
|
if( id[0] == 'T' )
|
||||||
{
|
{
|
||||||
asprintf( &ret, "BitTornado %d.%d.%d", ( id[1] - '0'), ( id[2] - '0'), ( id[3] - '0') );
|
asprintf( &ret, "BitTornado %d.%d.%d", ( id[1] - '0' - ( id[1] < 'A' ? 0 : 7 ) ),
|
||||||
|
( id[2] - '0' - ( id[2] < 'A' ? 0 : 7 ) ), ( id[3] - '0' - ( id[3] < 'A' ? 0 : 7 ) ) );
|
||||||
}
|
}
|
||||||
else if( id[0] == 'A' )
|
else if( id[0] == 'A' )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue