From 9d9ac68a2b45a4cedeafbf7c5aba513f494eced6 Mon Sep 17 00:00:00 2001 From: Takahiro Yamashita Date: Sun, 25 Feb 2024 10:25:53 +0900 Subject: [PATCH] in_head: fix buffer length for split_line Signed-off-by: Takahiro Yamashita --- plugins/in_head/in_head.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/in_head/in_head.c b/plugins/in_head/in_head.c index b40396f2593..bf2a1ea2034 100644 --- a/plugins/in_head/in_head.c +++ b/plugins/in_head/in_head.c @@ -223,7 +223,7 @@ static int split_lines_per_record(struct flb_input_instance *i_ins, ret = flb_log_event_encoder_append_body_values( &ctx->log_encoder, FLB_LOG_EVENT_CSTRING_VALUE(key_str), - FLB_LOG_EVENT_STRING_VALUE(ctx->buf, ctx->buf_len)); + FLB_LOG_EVENT_STRING_VALUE(ctx->buf, str_len)); } }