Then use strcpy() from the standard c lib and use &msg.name as parameter.