[BusyBox-cvs] busybox/archival/libunarchive get_header_ar.c, 1.9, 1.10
Glenn McGrath
bug1 at busybox.net
Fri Apr 9 06:59:08 UTC 2004
Update of /var/cvs/busybox/archival/libunarchive
In directory nail:/tmp/cvs-serv24450
Modified Files:
get_header_ar.c
Log Message:
Add a comment explaining why we have to check for an extra \n
Index: get_header_ar.c
===================================================================
RCS file: /var/cvs/busybox/archival/libunarchive/get_header_ar.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- a/get_header_ar.c 15 Mar 2004 08:28:17 -0000 1.9
+++ b/get_header_ar.c 9 Apr 2004 06:59:05 -0000 1.10
@@ -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);
More information about the busybox-cvs
mailing list