From fe476404b4ce134c946d1754d2652461340c1186 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Tue, 6 Feb 2024 17:27:02 +0100 Subject: patcjh --- src/metainfo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/metainfo.c') 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); -- cgit v1.2.3