summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2022-12-01 04:08:58 +0000
committermidipix <writeonce@midipix.org>2022-12-01 04:08:58 +0000
commitdfe02ce8279fb5253930dfbdde190ac2a7004a16 (patch)
treec7a9709088f04531268eb7c7f3dcc6094a5bf740 /src
parent5874a9b61724b61a90cd9746d2c15ef45a4d5c68 (diff)
downloadtpax-dfe02ce8279fb5253930dfbdde190ac2a7004a16.tar.bz2
tpax-dfe02ce8279fb5253930dfbdde190ac2a7004a16.tar.xz
struct tpax_unit_ctx_impl: correctly define the header buffer (C STD 6.7.2.1).
Diffstat (limited to 'src')
-rw-r--r--src/internal/tpax_driver_impl.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/internal/tpax_driver_impl.h b/src/internal/tpax_driver_impl.h
index 5775900..5fabb0a 100644
--- a/src/internal/tpax_driver_impl.h
+++ b/src/internal/tpax_driver_impl.h
@@ -84,10 +84,7 @@ struct tpax_unit_ctx_impl {
off_t dpos;
const char * link;
char linkbuf[1024];
- union {
- struct tpax_ustar_header uhdr;
- struct tpax_cpio_header chdr;
- } hdrbufs;
+ size_t hdrbuf[];
};