]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/CTrain.cpp
Don't link pak tool with SDL.
[quix0rs-blobwars.git] / src / CTrain.cpp
old mode 100755 (executable)
new mode 100644 (file)
index 91f6b3d..fb4ffe5
@@ -1,5 +1,5 @@
 /*
-Copyright (C) 2004 Parallel Realities
+Copyright (C) 2004-2011 Parallel Realities
 
 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
@@ -76,7 +76,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)