Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib: fix infinite loop in __darr_in_vsprintf
`darr_avail` returns the available capacity excluding the already existing terminating NULL byte. Take this into account when using `darr_avail`. Otherwise, if the error length is a power of 2, the capacity is never enough and the function stucks in an infinite loop. Signed-off-by: Igor Ryzhov <[email protected]>
- Loading branch information