]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/CPersistant.cpp
Use strlcat() and strlcpy(), #define wrappers when these functions are not available.
[quix0rs-blobwars.git] / src / CPersistant.cpp
index 82f03d677ea62e683491fe3b28d235c1099b9272..2ea8e6137ee83b2c195931ea1f56f25d0c7aba0a 100644 (file)
@@ -34,7 +34,7 @@ Persistant::~Persistant()
 
 void Persistant::setName(const char *name)
 {
-       strncpy(this->stageName, name, sizeof this->stageName);
+       strlcpy(this->stageName, name, sizeof this->stageName);
 }
 
 void Persistant::clear()