]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/CEntity.cpp
Don't link pak tool with SDL.
[quix0rs-blobwars.git] / src / CEntity.cpp
index e1575ca62069b0a9e6cca8889ede6bbe870e5042..e23b01f7777b8fd247d7b220684e153fe5d7c290 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
@@ -52,7 +52,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)