/*
-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
SpawnPoint::SpawnPoint()
{
- strcpy(name, "");
+ name[0] = 0;
active = false;
x = y = 0;
void SpawnPoint::create(const char *name, int x, int y, int spawnType, int spawnSubType, int minInterval, int maxInterval, bool active)
{
- strcpy(this->name, name);
+ strlcpy(this->name, name, sizeof this->name);
this->x = x;
this->y = y;
this->spawnType = spawnType;