Fixed bug in on_bitfield. Fixes #342

This commit is contained in:
Arvid Norberg 2008-06-02 06:52:24 +00:00
parent e0987022cc
commit f12e1d26b7
1 changed files with 1 additions and 1 deletions

View File

@ -938,7 +938,7 @@ namespace libtorrent
buffer::const_interval recv_buffer = receive_buffer();
bitfield bits;
bits.borrow_bytes((char*)recv_buffer.begin
bits.borrow_bytes((char*)recv_buffer.begin + 1
, t->valid_metadata()?get_bitfield().size():(packet_size()-1)*8);
incoming_bitfield(bits);