]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/CTrain.cpp
Make sure the Windows icon is square.
[quix0rs-blobwars.git] / src / CTrain.cpp
index 91f6b3d3a874bf2f708733c55ee2ee44969ab35c..3ee952bfaf195b62a5b03f3296bd29061a000a68 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
@@ -76,7 +77,7 @@ bool Train::waitsForPlayer()
 
 void Train::setName(const char *name)
 {
-       strcpy(this->name, name);
+       strlcpy(this->name, name, sizeof this->name);
 }
 
 void Train::set(int startX, int startY, int endX, int endY, int pause, bool fromStart)