Browse Source

Used wrong variable as offset into hash to copy

dynamic-accesslists
erdgeist 16 years ago
parent
commit
5a0146f810
  1. 2
      trackerlogic.c

2
trackerlogic.c

@ -294,7 +294,7 @@ size_t return_tcp_scrape_for_torrent( ot_hash *hash_list, int amount, char *repl
} else { } else {
int j; int j;
*r++='2';*r++='0';*r++=':'; *r++='2';*r++='0';*r++=':';
for(j=0;j<20;j+=4) WRITE32(r+=4,0,READ32(hash,i)); for(j=0;j<20;j+=4) WRITE32(r+=4,0,READ32(hash,j));
r += sprintf( r, "d8:completei%zde10:downloadedi%zde10:incompletei%zdee", r += sprintf( r, "d8:completei%zde10:downloadedi%zde10:incompletei%zdee",
torrent->peer_list->seed_count, torrent->peer_list->down_count, torrent->peer_list->peer_count-torrent->peer_list->seed_count ); torrent->peer_list->seed_count, torrent->peer_list->down_count, torrent->peer_list->peer_count-torrent->peer_list->seed_count );
} }

Loading…
Cancel
Save