aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/make
diff options
context:
space:
mode:
authorHartmut Brandt <harti@FreeBSD.org>2005-05-24 15:45:11 +0000
committerHartmut Brandt <harti@FreeBSD.org>2005-05-24 15:45:11 +0000
commit8ea7e6722bd4548e6dc213b53857df06623e6c32 (patch)
tree4fdc243ebc0d86306645102885d9037762fb2952 /usr.bin/make
parent99c2f31565245fece6d5bd1663b790823631814b (diff)
Notes
Diffstat (limited to 'usr.bin/make')
-rw-r--r--usr.bin/make/arch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/make/arch.c b/usr.bin/make/arch.c
index 2078d346c525..716c1d883586 100644
--- a/usr.bin/make/arch.c
+++ b/usr.bin/make/arch.c
@@ -775,7 +775,8 @@ ArchArchiveTouch(struct arfile *ar, int64_t ts)
* change timestamp, be sure to not NUL-terminated it, but
* to fill with spaces.
*/
- snprintf(ar->hdr.ar_date, sizeof(ar->hdr.ar_date), "%lld", ts);
+ snprintf(ar->hdr.ar_date, sizeof(ar->hdr.ar_date), "%jd",
+ (intmax_t)ts);
memset(ar->hdr.ar_date + strlen(ar->hdr.ar_date),
' ', sizeof(ar->hdr.ar_date) - strlen(ar->hdr.ar_date));