diff options
Diffstat (limited to 'usr.bin/ar/archive.c')
-rw-r--r-- | usr.bin/ar/archive.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/usr.bin/ar/archive.c b/usr.bin/ar/archive.c index 8ab1111..c8803cc 100644 --- a/usr.bin/ar/archive.c +++ b/usr.bin/ar/archive.c @@ -225,19 +225,20 @@ put_arobj(cfp, sb) name, OLDARMAXNAME, name); (void)fflush(stderr); } - (void)sprintf(hb, HDR3, name, sb->st_mtimespec.tv_sec, - sb->st_uid, sb->st_gid, sb->st_mode, sb->st_size, - ARFMAG); + (void)sprintf(hb, HDR3, name, + (long)sb->st_mtimespec.tv_sec, sb->st_uid, + sb->st_gid, sb->st_mode, sb->st_size, ARFMAG); lname = 0; } else if (lname > sizeof(hdr->ar_name) || strchr(name, ' ')) (void)sprintf(hb, HDR1, AR_EFMT1, lname, - sb->st_mtimespec.tv_sec, sb->st_uid, sb->st_gid, - sb->st_mode, sb->st_size + lname, ARFMAG); + (long)sb->st_mtimespec.tv_sec, sb->st_uid, + sb->st_gid, sb->st_mode, sb->st_size + lname, + ARFMAG); else { lname = 0; - (void)sprintf(hb, HDR2, name, sb->st_mtimespec.tv_sec, - sb->st_uid, sb->st_gid, sb->st_mode, sb->st_size, - ARFMAG); + (void)sprintf(hb, HDR2, name, + (long)sb->st_mtimespec.tv_sec, sb->st_uid, + sb->st_gid, sb->st_mode, sb->st_size, ARFMAG); } size = sb->st_size; } else { |