X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCTeleporter.cpp;h=d36f47dc07dd06e36f8d57817b93720f242b07b5;hb=c7dd0e611a500c4614f26c52be629150c86978a4;hp=50a9a2ccd99b292eb4a498ba84a75102cfac76d9;hpb=a882955f339b23b5e61f92ef7cb5aae76405d95b;p=quix0rs-blobwars.git diff --git a/src/CTeleporter.cpp b/src/CTeleporter.cpp index 50a9a2c..d36f47d 100644 --- a/src/CTeleporter.cpp +++ b/src/CTeleporter.cpp @@ -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 @@ -29,7 +30,7 @@ Teleporter::Teleporter() void Teleporter::setName(const char *name) { - strcpy(this->name, name); + strlcpy(this->name, name, sizeof this->name); } void Teleporter::set(int x, int y, int destX, int destY)