/*
-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
Objective::Objective(const char *description, const char *target, int targetValue, bool required)
{
- strncpy(this->description, description, sizeof this->description);
- strncpy(this->target, target, sizeof this->target);
+ strlcpy(this->description, description, sizeof this->description);
+ strlcpy(this->target, target, sizeof this->target);
this->targetValue = targetValue;
this->required = required;