From 86604c6822f05f62aaf2cd4d9275f53e6ac9a70c Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 26 May 2024 19:14:26 +0000 Subject: tpax_dirent_init_from_uctx(): pseudo-dirent: account for the null termination. --- src/logic/tpax_archive_append.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/logic/tpax_archive_append.c b/src/logic/tpax_archive_append.c index d0f5cb4..6ed414b 100644 --- a/src/logic/tpax_archive_append.c +++ b/src/logic/tpax_archive_append.c @@ -383,7 +383,7 @@ static int tpax_dirent_init_from_uctx( /* d_reclen */ dirent->d_reclen = offsetof(struct dirent,d_name); - dirent->d_reclen += strlen(basename); + dirent->d_reclen += strlen(basename) + 1; dirent->d_reclen += 0x1; dirent->d_reclen |= 0x1; -- cgit v1.2.3