X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCWidget.cpp;h=eaca00857356d53cca5f5c7aac837abd9273a5a8;hb=d581939511f482a3bfdaba7f6470de8939e6cd5e;hp=fbf8c3850d6a9248643fe968fce799968387256e;hpb=a0533dd345e4d7d60bc9cccb724e60875a42292c;p=quix0rs-blobwars.git diff --git a/src/CWidget.cpp b/src/CWidget.cpp index fbf8c38..eaca008 100644 --- a/src/CWidget.cpp +++ b/src/CWidget.cpp @@ -43,10 +43,10 @@ void Widget::setProperties(const char *name, const char *groupName, const char * exit(1); } - strncpy(this->name, name, sizeof this->name); - strncpy(this->groupName, groupName, sizeof this->groupName); - strncpy(this->label, label, sizeof this->label); - strncpy(this->options, options, sizeof this->options); + strlcpy(this->name, name, sizeof this->name); + strlcpy(this->groupName, groupName, sizeof this->groupName); + strlcpy(this->label, label, sizeof this->label); + strlcpy(this->options, options, sizeof this->options); this->x = x; this->y = y; this->min = min;