log: Fix size calculation for number of iovecs
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 31 Jul 2024 09:39:04 +0000 (11:39 +0200)
committerLuca Boccassi <bluca@debian.org>
Thu, 15 Aug 2024 13:04:41 +0000 (14:04 +0100)
commitf2edebce25779018beca0acd28457864869c2546
tree6030e49cf83ddb6ce1d53299117520bfeddaa405
parent4fd349953ea1d1ed580ecb94e5c0bf98c59d0fac
log: Fix size calculation for number of iovecs

Each log context field can expand to up to three iovecs (key, value
and newline) so let's fix the size calculation to take this into
account.

(cherry picked from commit fc83ff3f55ee53fd9101d4e45736f3f996ee7ca6)
src/basic/log.c