]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/CWidget.cpp
Added .gitignore to ignore certain files + fixed access rights on Makefile* as
[quix0rs-blobwars.git] / src / CWidget.cpp
index fbf8c3850d6a9248643fe968fce799968387256e..4a99f0d6ce1f3d3e1dc22d9bbfd18fa76d0c33f4 100644 (file)
@@ -1,5 +1,6 @@
 /*
-Copyright (C) 2004 Parallel Realities
+Copyright (C) 2004-2011 Parallel Realities
+Copyright (C) 2011-2015 Perpendicular Dimensions
 
 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
@@ -43,10 +44,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;