Add a comment explaining why we have to check for an extra \n
diff --git a/archival/libunarchive/get_header_ar.c b/archival/libunarchive/get_header_ar.c
index 86e0bc0..ebb6f8c 100644
--- a/archival/libunarchive/get_header_ar.c
+++ b/archival/libunarchive/get_header_ar.c
@@ -47,7 +47,9 @@
return(EXIT_FAILURE);
}
- /* Some ar entries have a trailing '\n' after the previous data entry */
+ /* ar header starts on an even byte (2 byte aligned)
+ * '\n' is used for padding
+ */
if (ar.raw[0] == '\n') {
/* fix up the header, we started reading 1 byte too early */
memmove(ar.raw, &ar.raw[1], 59);