summaryrefslogtreecommitdiff
path: root/lib/libc/time
diff options
context:
space:
mode:
authorDaniel Hartmeier <dhartmei@cvs.openbsd.org>2004-10-28 19:44:12 +0000
committerDaniel Hartmeier <dhartmei@cvs.openbsd.org>2004-10-28 19:44:12 +0000
commitb55094580d972a7e468f45967c72bb4773bc8afb (patch)
tree75ce6c557e1a7ba616607c83f9a300180e0ebdb3 /lib/libc/time
parente2ff866c2d39992812ef83e3b5a128665e126d2a (diff)
uses %ld, so pass the already present long instead of an int, should fix
PR 3970. ok miod@, deraadt@
Diffstat (limited to 'lib/libc/time')
-rw-r--r--lib/libc/time/asctime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/time/asctime.c b/lib/libc/time/asctime.c
index 5e22f919b72..c691da59499 100644
--- a/lib/libc/time/asctime.c
+++ b/lib/libc/time/asctime.c
@@ -5,7 +5,7 @@
#if defined(LIBC_SCCS) && !defined(lint) && !defined(NOID)
static char elsieid[] = "@(#)asctime.c 7.22";
-static char rcsid[] = "$OpenBSD: asctime.c,v 1.8 2004/10/18 22:33:43 millert Exp $";
+static char rcsid[] = "$OpenBSD: asctime.c,v 1.9 2004/10/28 19:44:11 dhartmei Exp $";
#endif /* LIBC_SCCS and not lint */
/*LINTLIBRARY*/
@@ -84,7 +84,7 @@ int bufsize;
wn, mn,
timeptr->tm_mday, timeptr->tm_hour,
timeptr->tm_min, timeptr->tm_sec,
- TM_YEAR_BASE + timeptr->tm_year);
+ year);
if (len < bufsize) {
return buf;
} else {