summaryrefslogtreecommitdiff
path: root/sysutils/screen/files/patch-utmp.c
blob: caedb6c1ec50a7970d72454575c9ca011eb4f292 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- utmp.c.orig	Mon Sep  8 16:27:17 2003
+++ utmp.c	Wed Oct 19 14:58:40 2005
@@ -726,9 +728,12 @@
 char *line, *user;
 int pid;
 {
+  time_t temp;
+
   strncpy(u->ut_line, line, sizeof(u->ut_line));
   strncpy(u->ut_name, user, sizeof(u->ut_name));
-  (void)time((time_t *)&u->ut_time);
+  (void)time(&temp);
+  u->ut_time = temp;
 }
 
 static slot_t