Skip to content
Commit 3bf54a9e authored by Krzysztof Chruściński's avatar Krzysztof Chruściński Committed by Mahesh Mahadevan
Browse files

lib: os: cbprintf_packaged: Fix cbprintf_package_convert



When conversion is done in two steps (output length calculation
followed by the actual conversion), it was failing when helper
array for holding calculated string length from the first
conversion run was shorter than number of strings that were
supposed to be appended to the package. Fix by taking into
account strl_len to determine if length can be taken from the
array or need to be calculated again.

Signed-off-by: default avatarKrzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
parent f82ffc92
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment