summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <>2008-12-07 12:04:03 +0000
committererdgeist <>2008-12-07 12:04:03 +0000
commit5a0146f810f980770a9acae23dc327120e032106 (patch)
treeff01264ed79d7e4e8b05051795988152e7c2d706
parentc6947b160f99278057df0770b849b46264b72229 (diff)
Used wrong variable as offset into hash to copy
-rw-r--r--trackerlogic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/trackerlogic.c b/trackerlogic.c
index 9366cd1..d6a7a33 100644
--- a/trackerlogic.c
+++ b/trackerlogic.c
@@ -294,7 +294,7 @@ size_t return_tcp_scrape_for_torrent( ot_hash *hash_list, int amount, char *repl
294 } else { 294 } else {
295 int j; 295 int j;
296 *r++='2';*r++='0';*r++=':'; 296 *r++='2';*r++='0';*r++=':';
297 for(j=0;j<20;j+=4) WRITE32(r+=4,0,READ32(hash,i)); 297 for(j=0;j<20;j+=4) WRITE32(r+=4,0,READ32(hash,j));
298 r += sprintf( r, "d8:completei%zde10:downloadedi%zde10:incompletei%zdee", 298 r += sprintf( r, "d8:completei%zde10:downloadedi%zde10:incompletei%zdee",
299 torrent->peer_list->seed_count, torrent->peer_list->down_count, torrent->peer_list->peer_count-torrent->peer_list->seed_count ); 299 torrent->peer_list->seed_count, torrent->peer_list->down_count, torrent->peer_list->peer_count-torrent->peer_list->seed_count );
300 } 300 }