Correct strbuf_vappend behavior when appending truncated string to fixed length
string buffer
Apply code formatting