summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordhartmei <dhartmei@openbsd.org>2004-10-28 19:44:11 +0000
committerdhartmei <dhartmei@openbsd.org>2004-10-28 19:44:11 +0000
commit1237925b5ef536394d56b8a0d23eded53a52aa25 (patch)
treee7ff25670d67331cee4ad57266d5924932a144fa
parentMention wax at phantomas. (diff)
downloadwireguard-openbsd-1237925b5ef536394d56b8a0d23eded53a52aa25.tar.xz
wireguard-openbsd-1237925b5ef536394d56b8a0d23eded53a52aa25.zip
uses %ld, so pass the already present long instead of an int, should fix
PR 3970. ok miod@, deraadt@
-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 {