From dfe02ce8279fb5253930dfbdde190ac2a7004a16 Mon Sep 17 00:00:00 2001 From: midipix Date: Dec 01 2022 04:08:58 +0000 Subject: struct tpax_unit_ctx_impl: correctly define the header buffer (C STD 6.7.2.1). --- 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[]; };