From 02b6e3e3ad1fb7b8656d945aeeb7ee0be0526137 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Sat, 25 Oct 2025 00:06:11 +0100 Subject: [PATCH] serial: toml: use b_string_replace_all_with_stringstream in refill_linebuf --- serial/toml.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/serial/toml.c b/serial/toml.c index 5d4d8f6..ee5a894 100644 --- a/serial/toml.c +++ b/serial/toml.c @@ -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; }