From 52991d7ee724d41a6c74c47db2bf34cdcb081bb6 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Wed, 20 May 2009 03:58:15 +0000 Subject: [PATCH] bah, that last commit was wrong --- libtransmission/tr-dht.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libtransmission/tr-dht.c b/libtransmission/tr-dht.c index 4123f1098..6643aeb15 100644 --- a/libtransmission/tr-dht.c +++ b/libtransmission/tr-dht.c @@ -163,7 +163,10 @@ tr_dhtInit(tr_session *ss) have_id = TRUE; } - tr_snprintf( v, sizeof( v ), "TR%02x", SVN_REVISION_NUM ); + v[0] = 'T'; + v[1] = 'R'; + v[2] = (SVN_REVISION_NUM >> 8) & 0xFF; + v[3] = SVN_REVISION_NUM & 0xFF; rc = dht_init( dht_socket, myid, (const unsigned char*)v ); if(rc < 0) goto fail;