diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-04-02 05:04:48 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-04-02 05:04:48 +0000 |
commit | a3c06213826cfd432c3ec5a4502db0853fba2328 (patch) | |
tree | 9ef3b688dd2d24d805319ce4a16ac507f81a1fe7 /usr.sbin/user/user.c | |
parent | b93c16bd873d4567929e6e04e75814e0ba4fe7cd (diff) |
for parsing time values, fall back to atoll() for time_t
ok guenther
Diffstat (limited to 'usr.sbin/user/user.c')
-rw-r--r-- | usr.sbin/user/user.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/user/user.c b/usr.sbin/user/user.c index 419024021c9..0aba94b4b51 100644 --- a/usr.sbin/user/user.c +++ b/usr.sbin/user/user.c @@ -1,4 +1,4 @@ -/* $OpenBSD: user.c,v 1.94 2013/03/04 07:24:52 ajacoutot Exp $ */ +/* $OpenBSD: user.c,v 1.95 2013/04/02 05:04:47 deraadt Exp $ */ /* $NetBSD: user.c,v 1.69 2003/04/14 17:40:07 agc Exp $ */ /* @@ -923,7 +923,7 @@ scantime(time_t *tp, char *s) } else if (strptime(s, "%B %d %Y", &tm) != NULL) { *tp = mktime(&tm); } else if (isdigit((unsigned char) s[0]) != 0) { - *tp = atoi(s); + *tp = (time_t)atoll(s); } else { return 0; } |