]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/CWidget.cpp
Incorrect reference to SDL_FRMEWORK
[quix0rs-blobwars.git] / src / CWidget.cpp
index fbf8c3850d6a9248643fe968fce799968387256e..9085e6228f8d8d529a7471351f4e203bc787ed86 100644 (file)
@@ -1,5 +1,5 @@
 /*
-Copyright (C) 2004 Parallel Realities
+Copyright (C) 2004-2011 Parallel Realities
 
 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
@@ -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;