summaryrefslogtreecommitdiffstats
path: root/src/ustar.h
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2023-04-25 05:35:44 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2023-04-25 05:45:27 (EDT)
commit28ea2b9718162761b5de617efa74ae2bd020acb2 (patch)
treedb06f233d3e6a3c832f79a84274a12e0ac9d09b6 /src/ustar.h
parent2701327cbb9d29e6cd7121fbd1ffee96588aa70b (diff)
ustar: Ensure listed linkname is NUL-terminated
Also simplify uname and gname copying.
Diffstat (limited to 'src/ustar.h')
-rw-r--r--src/ustar.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ustar.h b/src/ustar.h
index 3495d38..220603a 100644
--- a/src/ustar.h
+++ b/src/ustar.h
@@ -35,7 +35,7 @@ struct opkg_opk_ustar_member {
uint64_t size;
int64_t mtime;
char type;
- char linkname[100];
+ char linkname[101];
char uname [32];
char gname [32];
struct opkg_opk_ustar_member *next;