]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/CTeleporter.cpp
Use strlcat() and strlcpy(), #define wrappers when these functions are not available.
[quix0rs-blobwars.git] / src / CTeleporter.cpp
index 9f213aabb64dc2ff28674e02d7d4e85ab0f97569..ae299a08c391e9c97b23b483806d1d775073e1c2 100644 (file)
@@ -29,7 +29,7 @@ Teleporter::Teleporter()
 
 void Teleporter::setName(const char *name)
 {
-       strncpy(this->name, name, sizeof this->name);
+       strlcpy(this->name, name, sizeof this->name);
 }
 
 void Teleporter::set(int x, int y, int destX, int destY)