From dfe02ce8279fb5253930dfbdde190ac2a7004a16 Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 1 Dec 2022 04:08:58 +0000 Subject: struct tpax_unit_ctx_impl: correctly define the header buffer (C STD 6.7.2.1). --- src/internal/tpax_driver_impl.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/internal') 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[]; }; -- cgit v1.2.3