int32_t delta)
{
bool ret = true;
- CurFile elt;
- elt.seen = 0;
-
CurFile *item;
+
/* we store CurFile, fname and ctime/mtime in the same chunk */
+ /* TODO: see if len contains already the 3 \0 */
item = (CurFile *)jcr->file_list->hash_malloc(sizeof(CurFile)+len+3);
- memcpy(item, &elt, sizeof(CurFile));
+ item->seen = 0;
+ /* TODO: see if we can optimize this part with memcpy instead of strcpy */
item->fname = (char *)item+sizeof(CurFile);
strcpy(item->fname, fname);