diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2004-04-09 06:59:05 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2004-04-09 06:59:05 +0000 |
commit | eb92335c12161aeb1f92dd0b854fa3c58c69f590 (patch) | |
tree | 24ee90fa3ecbd101e78cf7bbe526ef247a9a97ae | |
parent | b6b135471163a08cb74457f4ccaca945be2f2221 (diff) | |
download | busybox-w32-eb92335c12161aeb1f92dd0b854fa3c58c69f590.tar.gz busybox-w32-eb92335c12161aeb1f92dd0b854fa3c58c69f590.tar.bz2 busybox-w32-eb92335c12161aeb1f92dd0b854fa3c58c69f590.zip |
Add a comment explaining why we have to check for an extra \n
git-svn-id: svn://busybox.net/trunk/busybox@8727 69ca8d6d-28ef-0310-b511-8ec308f3f277
-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) | |||
47 | return(EXIT_FAILURE); | 47 | return(EXIT_FAILURE); |
48 | } | 48 | } |
49 | 49 | ||
50 | /* Some ar entries have a trailing '\n' after the previous data entry */ | 50 | /* ar header starts on an even byte (2 byte aligned) |
51 | * '\n' is used for padding | ||
52 | */ | ||
51 | if (ar.raw[0] == '\n') { | 53 | if (ar.raw[0] == '\n') { |
52 | /* fix up the header, we started reading 1 byte too early */ | 54 | /* fix up the header, we started reading 1 byte too early */ |
53 | memmove(ar.raw, &ar.raw[1], 59); | 55 | memmove(ar.raw, &ar.raw[1], 59); |