client/state: Fix copying of packet data from deque to string

This commit is contained in:
Perttu Ahola 2014-09-18 21:31:42 +03:00
parent 17fb1254fc
commit 3db0f36cbe

View File

@ -104,7 +104,7 @@ struct CState: public State
return;
log_i(MODULE, "Received full packet; type=%zu, length=6+%zu",
type, size);
ss_ data(&m_socket_buffer[6], size);
ss_ data(m_socket_buffer.begin() + 6, m_socket_buffer.begin() + 6 + size);
m_socket_buffer.erase(m_socket_buffer.begin(),
m_socket_buffer.begin() + 6 + size);
try {