diff options
Diffstat (limited to 'sys/kern/tty_info.c')
-rw-r--r-- | sys/kern/tty_info.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/tty_info.c b/sys/kern/tty_info.c index d5885b9..fc3a5cf 100644 --- a/sys/kern/tty_info.c +++ b/sys/kern/tty_info.c @@ -299,7 +299,7 @@ tty_info(struct tty *tp) PGRP_UNLOCK(tp->t_pgrp); rufetchcalc(pick, &ru, &utime, &stime); pid = pick->p_pid; - bcopy(pick->p_comm, comm, sizeof(comm)); + strlcpy(comm, pick->p_comm, sizeof comm); PROC_UNLOCK(pick); /* Print command, pid, state, utime, stime, %cpu, and rss. */ |