/*
-Copyright (C) 2004 Parallel Realities
+Copyright (C) 2004-2010 Parallel Realities
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
void Trap::setName(const char *name)
{
- strcpy(this->name, name);
+ strlcpy(this->name, name, sizeof this->name);
}
void Trap::setTrapType(int type)