the reserved bits are only 8 bytes

This commit is contained in:
Arvid Norberg
2009-02-13 07:17:20 +00:00
parent 63a2522014
commit 2a9605f9db
2 changed files with 2 additions and 2 deletions

View File

@@ -2463,7 +2463,7 @@ namespace libtorrent
#endif
#ifndef DISABLE_EXTENSIONS
std::memcpy(m_reserved_bits, recv_buffer.begin, 20);
std::memcpy(m_reserved_bits, recv_buffer.begin, 8);
if ((recv_buffer[5] & 0x10))
m_supports_extensions = true;
#endif