summaryrefslogtreecommitdiff
path: root/usr.bin/ranlib
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-04-02 04:58:55 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-04-02 04:58:55 +0000
commit962782dcfedf0b1b8500d1e54f34af79c65c6e1b (patch)
treed66fb8329495ef6bfb7e588ca0a214a507ac7cd3 /usr.bin/ranlib
parent90662510935a246ee6f2715dbb2df274301e01d0 (diff)
handle larger time_t
ok guenther
Diffstat (limited to 'usr.bin/ranlib')
-rw-r--r--usr.bin/ranlib/touch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ranlib/touch.c b/usr.bin/ranlib/touch.c
index be658c708f0..17fc4dc6753 100644
--- a/usr.bin/ranlib/touch.c
+++ b/usr.bin/ranlib/touch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: touch.c,v 1.7 2009/10/27 23:59:42 deraadt Exp $ */
+/* $OpenBSD: touch.c,v 1.8 2013/04/02 04:58:54 deraadt Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -75,7 +75,7 @@ settime(int afd)
if (lseek(afd, size, SEEK_SET) == (off_t)-1)
error(archive);
(void)snprintf(buf, sizeof buf,
- "%-12ld", (long int)time((time_t *)NULL) + RANLIBSKEW);
+ "%-12lld", (long long)time((time_t *)NULL) + RANLIBSKEW);
if (write(afd, buf, sizeof(hdr->ar_date)) != sizeof(hdr->ar_date))
error(archive);
}