Fixed error message.
Properly extract packet bytes from the buffer.