you shoud be sure that strlen( buff_msg.msg() is equal to the message LEN. 

it's better to use LEN