]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/CSpawnPoint.cpp
Use strlcat() and strlcpy(), #define wrappers when these functions are not available.
[quix0rs-blobwars.git] / src / CSpawnPoint.cpp
index c7c91e5836cb9692bb0f1bb4739c4aaf2dd42fb0..178b7c22627c03ace2051a2093c4ea7c616d91dd 100644 (file)
@@ -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;