diff options
Diffstat (limited to 'src/metainfo.c')
-rw-r--r-- | src/metainfo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/metainfo.c b/src/metainfo.c index 680505a..72fc2ec 100644 --- a/src/metainfo.c +++ b/src/metainfo.c @@ -117,6 +117,7 @@ tail_recursion: } if (!path->next) { struct inode * file = calloc(1, sizeof(struct inode)); + file->length = size; file->parent = prnt; file->name = path->value; path->value = NULL; @@ -143,7 +144,7 @@ tail_recursion: * @return sum length of the filetree */ -static int filetree (struct inode ** root, struct bencoding * dict, unsigned * cunt, struct inode * prnt) { +static inode_length_t filetree (struct inode ** root, struct bencoding * dict, unsigned * cunt, struct inode * prnt) { if (!dict) return 0; assert(!*root); |