1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 17:17:31 +00:00

ascii conversion fix

This commit is contained in:
Mitchell Livingston 2006-12-07 23:08:44 +00:00
parent 1d43fbea7f
commit 9c6264d4b8

View file

@ -92,7 +92,8 @@ char * tr_clientForId( uint8_t * id )
{
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' )
{