summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2013-10-20 03:07:35 +0000
committerguenther <guenther@openbsd.org>2013-10-20 03:07:35 +0000
commitc37986c5723cfd28bc70728f0f8af239677b708a (patch)
tree466a6b7cd93fad02ed09a99097f93f6a115e3235
parentOur IPv6 stack was scanning all extension headers for routing header (diff)
downloadwireguard-openbsd-c37986c5723cfd28bc70728f0f8af239677b708a.tar.xz
wireguard-openbsd-c37986c5723cfd28bc70728f0f8af239677b708a.zip
Parse the argument the -r option with atoll() to support dates past 2038
from J Drivdal (xjd (at) rivu.net)
-rw-r--r--bin/date/date.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/date/date.c b/bin/date/date.c
index a6be81cc3dd..1422dc2f6fa 100644
--- a/bin/date/date.c
+++ b/bin/date/date.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: date.c,v 1.38 2012/12/04 02:38:50 deraadt Exp $ */
+/* $OpenBSD: date.c,v 1.39 2013/10/20 03:07:35 guenther Exp $ */
/* $NetBSD: date.c,v 1.11 1995/09/07 06:21:05 jtc Exp $ */
/*
@@ -80,7 +80,7 @@ main(int argc, char *argv[])
break;
case 'r': /* user specified seconds */
rflag = 1;
- tval = atol(optarg);
+ tval = atoll(optarg);
break;
case 'u': /* do everything in UTC */
if (setenv("TZ", "UTC", 1) == -1)