identify a client's peer id correctly

This commit is contained in:
Mitchell Livingston
2007-08-10 18:06:52 +00:00
parent 49bffb64f4
commit 03de70ffa7
+2 -3
View File
@@ -110,9 +110,8 @@ char * tr_clientForId( uint8_t * id )
}
else if( !memcmp( &id[1], "XX", 2 ) )
{
asprintf( &ret, "Xtorrent (%d)",
charToInt( id[3] ) * 1000 + charToInt( id[4] ) * 100
+ charToInt( id[5] ) * 10 + charToInt( id[6] ) );
asprintf( &ret, "Xtorrent %c.%c (%d)",
id[3], id[4], charToInt( id[5] ) * 10 + charToInt( id[6] ) );
}
else if( !memcmp( &id[1], "TS", 2 ) )
{