summaryrefslogtreecommitdiffhomepage
path: root/src/logic
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-05-26 19:14:26 +0000
committermidipix <writeonce@midipix.org>2024-05-26 19:14:26 +0000
commit86604c6822f05f62aaf2cd4d9275f53e6ac9a70c (patch)
treeccffddf964e002d8e1087ed9f478e7a428c181c3 /src/logic
parent537964d9b5819245e8760117fbd9984d23c05721 (diff)
downloadtpax-86604c6822f05f62aaf2cd4d9275f53e6ac9a70c.tar.bz2
tpax-86604c6822f05f62aaf2cd4d9275f53e6ac9a70c.tar.xz
tpax_dirent_init_from_uctx(): pseudo-dirent: account for the null termination.
Diffstat (limited to 'src/logic')
-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;