fixed wr_arhdr: date and size

This commit is contained in:
ceriel 1988-11-18 16:06:07 +00:00
parent 430dad523d
commit f2d5f15e51

View file

@ -21,13 +21,13 @@ wr_arhdr(fd, arhdr)
while (i--) {
*c++ = *p++;
}
put2(arhdr->ar_date>>16,c); c += 2;
put2(arhdr->ar_date,c); c += 2;
put2((int)(arhdr->ar_date>>16),c); c += 2;
put2((int)(arhdr->ar_date),c); c += 2;
*c++ = arhdr->ar_uid;
*c++ = arhdr->ar_gid;
put2(arhdr->ar_mode,c); c += 2;
put2(arhdr->ar_size>>16,c); c += 2;
put2(arhdr->ar_size,c);
put2((int)(arhdr->ar_size>>16),c); c += 2;
put2((int)(arhdr->ar_size),c);
wr_bytes(fd, buf, (long) AR_TOTAL);
}
#if WORDS_REVERSED && !BYTES_REVERSED