projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32da885
)
Add a comment explaining why we have to check for an extra \n
author
Glenn L McGrath
<bug1@ihug.co.nz>
Fri, 9 Apr 2004 06:59:05 +0000
(06:59 -0000)
committer
Glenn L McGrath
<bug1@ihug.co.nz>
Fri, 9 Apr 2004 06:59:05 +0000
(06:59 -0000)
archival/libunarchive/get_header_ar.c
patch
|
blob
|
history
diff --git
a/archival/libunarchive/get_header_ar.c
b/archival/libunarchive/get_header_ar.c
index 86e0bc08f2b85d8de570309ecf5f31ada41afcf0..ebb6f8cbe43754c521900ca271a14861bc8094fe 100644
(file)
--- 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);