From a5bf61534ecd186482d06ba228f01d3115b10036 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Wed, 11 Apr 2007 20:27:41 +0000 Subject: [PATCH] update peer id to include maintenance number --- libtransmission/transmission.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libtransmission/transmission.c b/libtransmission/transmission.c index e376cf4a7..b36b31beb 100644 --- a/libtransmission/transmission.c +++ b/libtransmission/transmission.c @@ -51,11 +51,11 @@ tr_handle_t * tr_init( const char * tag ) return NULL; } - /* Generate a peer id : "-TRxxyy-" + 12 random alphanumeric - characters, where xx is the major version number and yy the - minor version number (Azureus-style) */ - snprintf( h->id, sizeof h->id, "-TR%02d%02d-", - VERSION_MAJOR, VERSION_MINOR ); + /* Generate a peer id : "-TRxxyz-" + 12 random alphanumeric + characters, where xx is the major version number, y is the + minor version number, and z is the maintenance number (Azureus-style) */ + snprintf( h->id, sizeof h->id, "-TR%02d%01d%01d-", + VERSION_MAJOR, VERSION_MINOR, VERSION_MAINTENANCE ); for( i = 8; i < TR_ID_LEN; i++ ) { r = tr_rand( 36 );