- strncpy(this->name, name, sizeof this->name);
- strncpy(this->linkName, linkName, sizeof this->linkName);
- strncpy(this->requiredObjectName, requiredObjectName, sizeof this->requiredObjectName);
- strncpy(this->activateMessage, activateMessage, sizeof this->activateMessage);
+ strlcpy(this->name, name, sizeof this->name);
+ strlcpy(this->linkName, linkName, sizeof this->linkName);
+ strlcpy(this->requiredObjectName, requiredObjectName, sizeof this->requiredObjectName);
+ strlcpy(this->activateMessage, activateMessage, sizeof this->activateMessage);