- last->next = (DIR_ITEM *)alloc(sizeof(DIR_ITEM));
- last->next->next = NULL;
- strncpy(last->next->date, date, sizeof(last->next->date)-1);
- last->next->date[sizeof(last->next->date)-1] = '\0';
- last->next->level = level;
- strncpy(last->next->tape, tape, sizeof(last->next->tape)-1);
- last->next->tape[sizeof(last->next->tape)-1] = '\0';
- last->next->fileno = fileno;
- strncpy(last->next->path, path, sizeof(last->next->path)-1);
- last->next->path[sizeof(last->next->path)-1] = '\0';