summaryrefslogtreecommitdiff
path: root/lib/ringbuf.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2024-02-05 19:04:39 +0200
committerIgor Ryzhov <iryzhov@nfware.com>2024-03-04 02:24:26 +0200
commitee0c1cc1e4b87bde73f1eba3212ab93b1c379c6c (patch)
tree3bb2f8dbce0250d7a7284f3ab04048d4372f0d9b /lib/ringbuf.c
parente3bc6e39e4b7c54dbe8784a2f93d98c95441c3d0 (diff)
lib: fix __darr_in_vsprintf
If the initial darr capacity is not enough for the output, the `ap` is reused multiple times, which is wrong, because it may be altered by `vsnprintf`. Make a copy of `ap` each time instead of reusing. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/ringbuf.c')
0 files changed, 0 insertions, 0 deletions