X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCEntity.cpp;h=bf24711f515a90aca9ee442fa2bf34c9cce72281;hb=eb1121cb52d46d3e519f4cd359deb5d9697e9c49;hp=e1575ca62069b0a9e6cca8889ede6bbe870e5042;hpb=78036bae87af5f4c35a6eeb56d443b7cf93fcf73;p=quix0rs-blobwars.git diff --git a/src/CEntity.cpp b/src/CEntity.cpp index e1575ca..bf24711 100644 --- a/src/CEntity.cpp +++ b/src/CEntity.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 @@ -52,7 +53,7 @@ Entity::Entity() void Entity::setName(const char *name) { - strncpy(this->name, name, sizeof this->name); + strlcpy(this->name, name, sizeof this->name); } void Entity::setSprites(Sprite *sprite1, Sprite *sprite2, Sprite *sprite3)