* uucpd/uucpd.c (dologin): New `time_t' variable to use with time(),
copy its contents to `ll.ll_time' afterwards.
---
 uucpd/uucpd.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/uucpd/uucpd.c b/uucpd/uucpd.c
index 34f833b..5388d0f 100644
--- a/uucpd/uucpd.c
+++ b/uucpd/uucpd.c
@@ -277,8 +277,10 @@ dologin (struct passwd *pw, struct sockaddr_in *sin)
   if (f >= 0)
     {
       struct lastlog ll;
+      time_t t;
 
-      time (&ll.ll_time);
+      time (&t);
+      ll.ll_time = t;
       lseek (f, (long) pw->pw_uid * sizeof (struct lastlog), 0);
       strcpy (line, remotehost);
       SCPYN (ll.ll_line, line);
-- 
1.6.5.3



Reply via email to