Commit a73982d7 authored by Xiang W's avatar Xiang W Committed by Anup Patel
Browse files

lib: sbi: Fix missing '\0' when buffer szie equal 1



Fix special case: sbi_snprintf(out, out_len, ...) when out_len equal
1, The previous code will not fill the buffer with any char.

Signed-off-by: default avatarXiang W <wxjstz@126.com>
Reviewed-by: default avatarAnup Patel <anup@brainfault.org>
parent ff431681
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment