freebsd-ports/sysutils/screen/files/patch-utmp.c
Philip Paeps 41ea7ff3f8 Fix handling of utmp entries on sparc64.
Approved by:	cy (maintainer)
Obtained from:	NetBSD
2005-10-21 14:24:02 +00:00

17 lines
352 B
C

--- 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