mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
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:
parent
4aba47f7ce
commit
bb8992b32c
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue