Changeset 1171


Ignore:
Timestamp:
Dec 7, 2006, 11:08:44 PM (15 years ago)
Author:
livings124
Message:

ascii conversion fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/clients.c

    r1170 r1171  
    9393        if( id[0] == 'T' )
    9494        {
    95             asprintf( &ret, "BitTornado %d.%d.%d", ( id[1] - '0'), ( id[2] - '0'), ( id[3] - '0') );
     95            asprintf( &ret, "BitTornado %d.%d.%d", ( id[1] - '0' - ( id[1] < 'A' ? 0 : 7 ) ),
     96                 ( id[2] - '0' - ( id[2] < 'A' ? 0 : 7 ) ),  ( id[3] - '0' - ( id[3] < 'A' ? 0 : 7 ) ) );
    9697        }
    9798        else if( id[0] == 'A' )
Note: See TracChangeset for help on using the changeset viewer.