/*
-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
HubLevel::HubLevel()
{
- strcpy(stageName, "");
- strcpy(filename, "");
+ stageName[0] = 0;
+ filename[0] = 0;
x = y = 0;
levelNameImage = NULL;
void HubLevel::set(const char *stageName, const char *filename, int x, int y)
{
- strcpy(this->stageName, stageName);
- strcpy(this->filename, filename);
+ strlcpy(this->stageName, stageName, sizeof this->stageName);
+ strlcpy(this->filename, filename, sizeof this->filename);
this->x = x;
this->y = y;
}