/*
-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
Data::Data()
{
- strcpy(key, "");
- strcpy(value, "");
+ key[0] = 0;
+ value[0] = 0;
current = 0;
target = 1;
}
return;
}
- strcpy(this->key, key);
- strcpy(this->value, value);
+ strlcpy(this->key, key, sizeof this->key);
+ strlcpy(this->value, value, sizeof this->value);
this->current = current;
this->target = target;
}