]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/CSpawnPoint.cpp
Updated PNG icon files.
[quix0rs-blobwars.git] / src / CSpawnPoint.cpp
index c7c91e5836cb9692bb0f1bb4739c4aaf2dd42fb0..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
@@ -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)
 {
-       strncpy(this->name, name, sizeof this->name);
+       strlcpy(this->name, name, sizeof this->name);
        this->x = x;
        this->y = y;
        this->spawnType = spawnType;