Correct buffer content assignment in recvMessage().