/*
-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
Switch *swt = (Switch*)map.switchList.getHead();
bool okayToActivate = false;
- char message[100];
+ char message[256];
while (swt->next != NULL)
{
if (swt->type == SWT_PRESSURE)
{
- strncpy(swt->requiredObjectName, "@none@", sizeof swt->requiredObjectName);
+ strlcpy(swt->requiredObjectName, "@none@", sizeof swt->requiredObjectName);
}
checkObjectives(swt->name, true);
- strncpy(swt->name, "Switch", sizeof swt->name);
+ strlcpy(swt->name, "Switch", sizeof swt->name);
}
else
{