]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/CTeleporter.cpp
Don't link pak tool with SDL.
[quix0rs-blobwars.git] / src / CTeleporter.cpp
index 9f213aabb64dc2ff28674e02d7d4e85ab0f97569..46b8d8cd116c155e7baf825c07206460b52fd45e 100644 (file)
@@ -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
@@ -29,7 +29,7 @@ Teleporter::Teleporter()
 
 void Teleporter::setName(const char *name)
 {
-       strncpy(this->name, name, sizeof this->name);
+       strlcpy(this->name, name, sizeof this->name);
 }
 
 void Teleporter::set(int x, int y, int destX, int destY)