mirror of
git://erdgeist.org/opentracker
synced 2025-01-14 00:40:09 +00:00
Used wrong variable as offset into hash to copy
This commit is contained in:
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…
Reference in New Issue
Block a user