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.
This commit is contained in:
Robert Drehmel 2002-10-17 21:02:02 +00:00
parent 4aba47f7ce
commit bb8992b32c

View file

@ -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) {