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;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
b_string_clear(ctx->ctx_linebuf);
|
status = b_string_replace_all_with_stringstream(ctx->ctx_linebuf, buf);
|
||||||
status = b_string_append_cstr(ctx->ctx_linebuf, b_stringstream_ptr(buf));
|
|
||||||
if (!B_OK(status)) {
|
if (!B_OK(status)) {
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user