Used wrong variable as offset into hash to copy

dynamic-accesslists
erdgeist 16 years ago
parent c6947b160f
commit 5a0146f810

@ -294,7 +294,7 @@ size_t return_tcp_scrape_for_torrent( ot_hash *hash_list, int amount, char *repl
} else {
int j;
*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",
torrent->peer_list->seed_count, torrent->peer_list->down_count, torrent->peer_list->peer_count-torrent->peer_list->seed_count );
}

Loading…
Cancel
Save