artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b5b09c
)
Use destination bound rather than the source bound for out_line and
author
martynas
<martynas@openbsd.org>
Thu, 9 Jan 2014 05:04:03 +0000
(
05:04
+0000)
committer
martynas
<martynas@openbsd.org>
Thu, 9 Jan 2014 05:04:03 +0000
(
05:04
+0000)
out_name. OK millert@.
usr.sbin/rwhod/rwhod.c
patch
|
blob
|
history
diff --git
a/usr.sbin/rwhod/rwhod.c
b/usr.sbin/rwhod/rwhod.c
index
a85e6cb
..
edc0de6
100644
(file)
--- 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.o
ut_line));
memcpy(we->we_utmp.out_name, utmp[i].ut_name,
- sizeof(
utmp[i].ut_nam
e));
+ sizeof(
we->we_utmp.out_lin
e));
we->we_utmp.out_time = htonl(utmp[i].ut_time);
if (we >= wlast)
break;