if you expect '\0', you must add it to your msg_ too.
Use: 
```cpp
msg_ = new char[ len_ + 1 ];
memcpy( msg_, msg, len_ + 1 );
```