From 03de70ffa750752f39d4fcba360d2fa94e929503 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Fri, 10 Aug 2007 18:06:52 +0000 Subject: [PATCH] identify a client's peer id correctly --- libtransmission/clients.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libtransmission/clients.c b/libtransmission/clients.c index 901f8c11b..150ee1dad 100644 --- a/libtransmission/clients.c +++ b/libtransmission/clients.c @@ -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 ) ) {