summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-04-16 22:13:44 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-04-16 22:13:44 +0000
commit8181fe08c8d9faa4b50d673f81c64f6f7320d40a (patch)
tree633afec4aaf7e58c61628d00ec137a7d6ec29a7a
parent4d806944f089074265b89cfe9f81116efca80d14 (diff)
handle larger tv_sec types
-rw-r--r--bin/dd/misc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/dd/misc.c b/bin/dd/misc.c
index b87a67cfbf9..1a92010d2ac 100644
--- a/bin/dd/misc.c
+++ b/bin/dd/misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.c,v 1.16 2009/10/27 23:59:21 deraadt Exp $ */
+/* $OpenBSD: misc.c,v 1.17 2013/04/16 22:13:43 deraadt Exp $ */
/* $NetBSD: misc.c,v 1.4 1995/03/21 09:04:10 cgd Exp $ */
/*-
@@ -86,8 +86,8 @@ summary(void)
iov[i++].iov_len = strlen(buf[2]);
}
(void)snprintf(buf[3], sizeof(buf[3]),
- "%qd bytes transferred in %ld.%03ld secs (%0.0f bytes/sec)\n",
- (long long)st.bytes, nowtv.tv_sec, nowtv.tv_usec / 1000,
+ "%qd bytes transferred in %lld.%03ld secs (%0.0f bytes/sec)\n",
+ (long long)st.bytes, (long long)nowtv.tv_sec, nowtv.tv_usec / 1000,
((double)st.bytes * 1000000) / microsecs);
iov[i].iov_base = buf[3];