From 3ee8991200dcef06520b9f022de784eb1089d40a Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Tue, 30 Dec 2008 18:40:09 +0000 Subject: [PATCH] Fix badly formed bencoded answer to stopped events --- trackerlogic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trackerlogic.c b/trackerlogic.c index c1106e1..34a12e7 100644 --- a/trackerlogic.c +++ b/trackerlogic.c @@ -335,7 +335,7 @@ size_t remove_peer_from_torrent( ot_hash *hash, ot_peer *peer, char *reply, PROT if( proto == FLAG_TCP ) { int erval = OT_CLIENT_REQUEST_INTERVAL_RANDOM; - reply_size = sprintf( reply, "d8:completei%zde10:incompletei%zde8:intervali%ie12min intervali%ie5:peers0:e", peer_list->seed_count, peer_list->peer_count - peer_list->seed_count, erval, erval / 2 ); + reply_size = sprintf( reply, "d8:completei%zde10:incompletei%zde8:intervali%ie12:min intervali%ie5:peers0:e", peer_list->seed_count, peer_list->peer_count - peer_list->seed_count, erval, erval / 2 ); } /* Handle UDP reply */