]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/CTrap.cpp
Added .gitignore to ignore certain files + fixed access rights on Makefile* as
[quix0rs-blobwars.git] / src / CTrap.cpp
index ce6a79113b73debe3c5b3f625778b9c581417be9..8c758b7a5351f311a6175e6003d52313a9abc02e 100644 (file)
@@ -1,5 +1,6 @@
 /*
-Copyright (C) 2004 Parallel Realities
+Copyright (C) 2004-2011 Parallel Realities
+Copyright (C) 2011-2015 Perpendicular Dimensions
 
 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
@@ -30,7 +31,7 @@ Trap::Trap()
 
 void Trap::setName(const char *name)
 {
-       strcpy(this->name, name);
+       strlcpy(this->name, name, sizeof this->name);
 }
 
 void Trap::setTrapType(int type)