Skip to content

Commit

Permalink
in_head: fix buffer length for split_line
Browse files Browse the repository at this point in the history
Signed-off-by: Takahiro Yamashita <[email protected]>
  • Loading branch information
nokute78 authored and edsiper committed Feb 26, 2024
1 parent 90e0cdc commit 9d9ac68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/in_head/in_head.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

Expand Down

0 comments on commit 9d9ac68

Please sign in to comment.