/*
-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
limitRight = ((MAPWIDTH - 40) * BRICKSIZE);
limitDown = ((MAPHEIGHT - 30) * BRICKSIZE);
- strcpy(name, "");
+ name[0] = 0;
for (int x = 0 ; x < MAPWIDTH ; x++)
for (int y = 0 ; y < MAPHEIGHT ; y++)
if (strcmp(p->stageName, name) == 0)
{
- strcpy(p->stageName, "@none@");
+ strlcpy(p->stageName, "@none@", sizeof p->stageName);
p->clear();
return;
}
void Map::setName(const char *name)
{
- strcpy(this->name, name);
+ strlcpy(this->name, name, sizeof this->name);
if (strstr(name, "BioMech"))
{