serial: toml: use b_string_replace_all_with_stringstream in refill_linebuf
This commit is contained in:
@@ -226,8 +226,7 @@ static enum b_status refill_linebuf(struct ctx *ctx)
|
||||
return status;
|
||||
}
|
||||
|
||||
b_string_clear(ctx->ctx_linebuf);
|
||||
status = b_string_append_cstr(ctx->ctx_linebuf, b_stringstream_ptr(buf));
|
||||
status = b_string_replace_all_with_stringstream(ctx->ctx_linebuf, buf);
|
||||
if (!B_OK(status)) {
|
||||
return status;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user