strnsave
devices.v[devices.c].dev = strnsave(dev, len);
devices.v[devices.c].parent = strnsave(parent, parentlen);
devices.v[devices.c].descr = strnsave(descr, descrlen);
if ((tp->v[tp->c].name = strnsave(path, pathlen)) == NULL) {
tp->v[tp->c].tgt = strnsave(tgt, tgtlen);