Commit 83feeb19 authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet
Browse files

lib/string_helpers: string_get_size() now returns characters wrote



printbuf now needs to know the number of characters that would have been
written if the buffer was too small, like snprintf(); this changes
string_get_size() to return the the return value of snprintf().

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 7d672f40
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