]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/CSpawnPoint.cpp
Updated PNG icon files.
[quix0rs-blobwars.git] / src / CSpawnPoint.cpp
index 0d415516034bfa46ff5145241a04be3c01ba44d5..add4b642198e731ce6ec598e30ee3f9344a9543c 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
@@ -22,7 +22,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 SpawnPoint::SpawnPoint()
 {
-       strcpy(name, "");
+       name[0] = 0;
        active = false;
        x = y = 0;
 
@@ -42,7 +42,7 @@ void SpawnPoint::reset()
 
 void SpawnPoint::create(const char *name, int x, int y, int spawnType, int spawnSubType, int minInterval, int maxInterval, bool active)
 {
-       strcpy(this->name, name);
+       strlcpy(this->name, name, sizeof this->name);
        this->x = x;
        this->y = y;
        this->spawnType = spawnType;