diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2004-04-09 06:59:05 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2004-04-09 06:59:05 +0000 |
commit | 958ac18d4efe68fdad8dfae15355b7fd27452a2d (patch) | |
tree | 24ee90fa3ecbd101e78cf7bbe526ef247a9a97ae /archival/libunarchive | |
parent | 32da885a91e0120dfd4c9334262ff923d824599b (diff) |
Add a comment explaining why we have to check for an extra \n
Diffstat (limited to 'archival/libunarchive')
-rw-r--r-- | archival/libunarchive/get_header_ar.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/archival/libunarchive/get_header_ar.c b/archival/libunarchive/get_header_ar.c index 86e0bc08f..ebb6f8cbe 100644 --- a/archival/libunarchive/get_header_ar.c +++ b/archival/libunarchive/get_header_ar.c @@ -47,7 +47,9 @@ extern char get_header_ar(archive_handle_t *archive_handle) 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); |