summaryrefslogtreecommitdiff
path: root/login/logwtmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'login/logwtmp.c')
-rw-r--r--login/logwtmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/login/logwtmp.c b/login/logwtmp.c
index 994029cb63..68a8f8f5b5 100644
--- a/login/logwtmp.c
+++ b/login/logwtmp.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
@@ -46,7 +46,7 @@ logwtmp (const char *line, const char *name, const char *host)
#if _HAVE_UT_TV - 0
__gettimeofday (&ut.ut_tv, NULL);
#else
- time (&ut.ut_time);
+ ut.ut_time = time (NULL);
#endif
updwtmp (_PATH_WTMP, &ut);