summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_intr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_intr.c')
-rw-r--r--sys/kern/kern_intr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_intr.c b/sys/kern/kern_intr.c
index 2d7b160..4bace31 100644
--- a/sys/kern/kern_intr.c
+++ b/sys/kern/kern_intr.c
@@ -124,7 +124,8 @@ ithread_update(struct ithd *ithd)
return;
p = td->td_proc;
- strncpy(p->p_comm, ithd->it_name, sizeof(ithd->it_name));
+ strlcpy(p->p_comm, ithd->it_name, sizeof(ithd->it_name));
+
ih = TAILQ_FIRST(&ithd->it_handlers);
if (ih == NULL) {
mtx_lock_spin(&sched_lock);
OpenPOWER on IntegriCloud