mirror of
https://github.com/opnsense/src.git
synced 2026-04-29 18:32:49 -04:00
Change fix a bug where the length of data written by snprintf was
being mishandled by using accumulation (into an uninitialized variable) instead of direct assignment. Reviewed by: scottl
This commit is contained in:
parent
4b1783363f
commit
9c6519b0a2
1 changed files with 1 additions and 1 deletions
|
|
@ -414,7 +414,7 @@ print_arg(int fd, struct syscall_args *sc, unsigned long *args, long retval) {
|
|||
(POLLIN | POLLPRI | POLLOUT | POLLERR | POLLHUP | POLLNVAL | \
|
||||
POLLRDNORM |POLLRDBAND | POLLWRBAND | POLLINIGNEOF)
|
||||
|
||||
u += snprintf(tmp + used, per_fd,
|
||||
u = snprintf(tmp + used, per_fd,
|
||||
"%s%d 0x%hx%s%s%s%s%s%s%s%s%s ",
|
||||
i > 0 ? " " : "",
|
||||
pfd[i].fd,
|
||||
|
|
|
|||
Loading…
Reference in a new issue