X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCPersistant.cpp;fp=src%2FCPersistant.cpp;h=82f03d677ea62e683491fe3b28d235c1099b9272;hb=78036bae87af5f4c35a6eeb56d443b7cf93fcf73;hp=5161f1f5a612bbf5fbe43dba9e8d8e648d75c88e;hpb=2d136efe4e6359cf1d76aff6101a147b002eee6c;p=quix0rs-blobwars.git diff --git a/src/CPersistant.cpp b/src/CPersistant.cpp old mode 100755 new mode 100644 index 5161f1f..82f03d6 --- a/src/CPersistant.cpp +++ b/src/CPersistant.cpp @@ -22,7 +22,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. Persistant::Persistant() { - strcpy(stageName, ""); + stageName[0] = 0; numberOfLines = 0; } @@ -34,7 +34,7 @@ Persistant::~Persistant() void Persistant::setName(const char *name) { - strcpy(this->stageName, name); + strncpy(this->stageName, name, sizeof this->stageName); } void Persistant::clear()