From bb8992b32ca5d4d97f0b2f5aa907e45e286fc468 Mon Sep 17 00:00:00 2001 From: Robert Drehmel Date: Thu, 17 Oct 2002 21:02:02 +0000 Subject: [PATCH] Instead of (sizeof(source_buffer) - 1) bytes, copy at most (sizeof(destination_buffer) - 1) bytes into the destination buffer. This was not harmful because they currently both provide space for (MAXCOMLEN + 1) bytes. --- sys/kern/kern_intr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_intr.c b/sys/kern/kern_intr.c index 4bace311eae..debca73db84 100644 --- a/sys/kern/kern_intr.c +++ b/sys/kern/kern_intr.c @@ -124,7 +124,7 @@ ithread_update(struct ithd *ithd) return; p = td->td_proc; - strlcpy(p->p_comm, ithd->it_name, sizeof(ithd->it_name)); + strlcpy(p->p_comm, ithd->it_name, sizeof(p->p_comm)); ih = TAILQ_FIRST(&ithd->it_handlers); if (ih == NULL) {