]> 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
old mode 100755 (executable)
new mode 100644 (file)
index 50a9a2c..ae299a0
@@ -29,7 +29,7 @@ Teleporter::Teleporter()
 
 void Teleporter::setName(const char *name)
 {
-       strcpy(this->name, name);
+       strlcpy(this->name, name, sizeof this->name);
 }
 
 void Teleporter::set(int x, int y, int destX, int destY)