summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_intr.c
diff options
context:
space:
mode:
authorrobert <robert@FreeBSD.org>2002-10-17 21:02:02 +0000
committerrobert <robert@FreeBSD.org>2002-10-17 21:02:02 +0000
commit399c4103ecda3c2edb2ae4c6bbc891c191b8750d (patch)
tree5b09dd39f5216e1404780123149bb11ffca8fd54 /sys/kern/kern_intr.c
parent2271050e4cb8196e4b9d659fe6d34cba79db0047 (diff)
downloadFreeBSD-src-399c4103ecda3c2edb2ae4c6bbc891c191b8750d.zip
FreeBSD-src-399c4103ecda3c2edb2ae4c6bbc891c191b8750d.tar.gz
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.
Diffstat (limited to 'sys/kern/kern_intr.c')
-rw-r--r--sys/kern/kern_intr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_intr.c b/sys/kern/kern_intr.c
index 4bace31..debca73 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) {
OpenPOWER on IntegriCloud