Sophie

Sophie

distrib > Arklinux > devel > i586 > media > main-src > by-pkgid > cb26ad6e30dd1de1c1ec122e905adf36 > files > 1

bsd-games-2.17-1ark.src.rpm

--- bsd-games-2.17/dm/utmpentry.c.ark	2009-12-07 10:08:26.524532092 +0000
+++ bsd-games-2.17/dm/utmpentry.c	2009-12-07 10:09:11.347863225 +0000
@@ -291,7 +291,7 @@ getentryx(struct utmpentry *e, struct ut
 	e->line[sizeof(e->line) - 1] = '\0';
 	(void)strncpy(e->host, up->ut_host, sizeof(up->ut_host));
 	e->name[sizeof(e->host) - 1] = '\0';
-	e->tv = up->ut_tv;
+	memcpy(&e->tv, &up->ut_tv, sizeof(struct timeval));
 	adjust_size(e);
 }
 #endif