From 726afbae157b414401137193f6361fe3591db525 Mon Sep 17 00:00:00 2001 From: apio Date: Wed, 23 Nov 2022 20:52:18 +0100 Subject: [PATCH] Update tar.h --- src/tar.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tar.h b/src/tar.h index 004ba77..f78323c 100644 --- a/src/tar.h +++ b/src/tar.h @@ -1,6 +1,8 @@ #ifndef MINITAR_TAR_H #define MINITAR_TAR_H +// Format of a raw standard tar header. + struct tar_header { char name[100]; @@ -19,7 +21,8 @@ struct tar_header char devmajor[8]; char devminor[8]; char prefix[155]; - char padding[12]; // to make the structure 512 bytes + + char padding[12]; // Not part of the header, only used to make the structure 512 bytes } __attribute__((packed)); #endif \ No newline at end of file