aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archival/libunarchive/get_header_tar.c2
-rw-r--r--archival/tar.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/archival/libunarchive/get_header_tar.c b/archival/libunarchive/get_header_tar.c
index a9659181e..b3efdec94 100644
--- a/archival/libunarchive/get_header_tar.c
+++ b/archival/libunarchive/get_header_tar.c
@@ -113,7 +113,7 @@ char get_header_tar(archive_handle_t *archive_handle)
113 113
114 /* Do checksum on headers. 114 /* Do checksum on headers.
115 * POSIX says that checksum is done on unsigned bytes, but 115 * POSIX says that checksum is done on unsigned bytes, but
116 * Sun and HP-UX fucked it up... more details in 116 * Sun and HP-UX gets it wrong... more details in
117 * GNU tar source. */ 117 * GNU tar source. */
118 sum_s = sum_u = ' ' * sizeof(tar.chksum); 118 sum_s = sum_u = ' ' * sizeof(tar.chksum);
119 for (i = 0; i < 148 ; i++) { 119 for (i = 0; i < 148 ; i++) {
diff --git a/archival/tar.c b/archival/tar.c
index 992128ef4..3ed0c3650 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -174,7 +174,7 @@ static void putOctal(char *cp, int len, off_t value)
174static void chksum_and_xwrite(int fd, struct TarHeader* hp) 174static void chksum_and_xwrite(int fd, struct TarHeader* hp)
175{ 175{
176 /* POSIX says that checksum is done on unsigned bytes 176 /* POSIX says that checksum is done on unsigned bytes
177 * (Sun and HP-UX fucked it up... more details in 177 * (Sun and HP-UX gets it wrong... more details in
178 * GNU tar source) */ 178 * GNU tar source) */
179 const unsigned char *cp; 179 const unsigned char *cp;
180 int chksum, size; 180 int chksum, size;