diff options
author | Martynas Venckus <martynas@cvs.openbsd.org> | 2014-01-09 05:04:04 +0000 |
---|---|---|
committer | Martynas Venckus <martynas@cvs.openbsd.org> | 2014-01-09 05:04:04 +0000 |
commit | 323d72c8a366a3669e417963719aa74d1220af22 (patch) | |
tree | c6ce28c506ae4063b915bd6b829330dd2c884cc7 /usr.sbin | |
parent | 0f59a10d458af99a4ea287ddf510fa7a9d2fc3f8 (diff) |
Use destination bound rather than the source bound for out_line and
out_name. OK millert@.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/rwhod/rwhod.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rwhod/rwhod.c b/usr.sbin/rwhod/rwhod.c index a85e6cbca07..edc0de66196 100644 --- a/usr.sbin/rwhod/rwhod.c +++ b/usr.sbin/rwhod/rwhod.c @@ -374,9 +374,9 @@ timer(void) for (i = 0; i < utmpent; i++) if (utmp[i].ut_name[0]) { memcpy(we->we_utmp.out_line, utmp[i].ut_line, - sizeof(utmp[i].ut_line)); + sizeof(we->we_utmp.out_line)); memcpy(we->we_utmp.out_name, utmp[i].ut_name, - sizeof(utmp[i].ut_name)); + sizeof(we->we_utmp.out_line)); we->we_utmp.out_time = htonl(utmp[i].ut_time); if (we >= wlast) break; |