]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/CWeapon.cpp
Use strlcat() and strlcpy(), #define wrappers when these functions are not available.
[quix0rs-blobwars.git] / src / CWeapon.cpp
index 7268b8b9d56998225e1676547b21b985e35aae28..53d962bfbbced144ca460b07827e09fad2292b27 100644 (file)
@@ -34,7 +34,7 @@ Weapon::Weapon()
 
 void Weapon::setName(const char *name)
 {
-       strncpy(this->name, name, sizeof this->name);
+       strlcpy(this->name, name, sizeof this->name);
 }
 
 int Weapon::getSpeed(int face)