diff --git a/src/peer_connection.cpp b/src/peer_connection.cpp index c2f49b3a3..51aba79d9 100755 --- a/src/peer_connection.cpp +++ b/src/peer_connection.cpp @@ -1415,6 +1415,7 @@ namespace libtorrent return; } disk_buffer_holder holder(m_ses, buffer); + std::memcpy(buffer, data, p.length); incoming_piece(p, holder); }