]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/CPersistant.cpp
Added .gitignore to ignore certain files + fixed access rights on Makefile* as
[quix0rs-blobwars.git] / src / CPersistant.cpp
index 5161f1f5a612bbf5fbe43dba9e8d8e648d75c88e..b5cf99427865b8a9a83fdb091bdc6670bbc9b45b 100644 (file)
@@ -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
@@ -22,7 +23,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 Persistant::Persistant()
 {
-       strcpy(stageName, "");
+       stageName[0] = 0;
        numberOfLines = 0;
 }
 
@@ -34,7 +35,7 @@ Persistant::~Persistant()
 
 void Persistant::setName(const char *name)
 {
-       strcpy(this->stageName, name);
+       strlcpy(this->stageName, name, sizeof this->stageName);
 }
 
 void Persistant::clear()