serial: toml: use b_string_replace_all_with_stringstream in refill_linebuf

This commit is contained in:
2025-10-25 00:06:11 +01:00
parent a1b177a5a1
commit 02b6e3e3ad

View File

@@ -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;
}