summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/logic/tpax_archive_append.c2
1 files changed, 1 insertions, 1 deletions
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;