Skip to content

Commit

Permalink
filter_lua: fix buffer size calculation
Browse files Browse the repository at this point in the history
Signed-off-by: Takahiro Yamashita <[email protected]>
  • Loading branch information
nokute78 authored May 4, 2023
1 parent c7c6aeb commit d08533b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/filter_lua/lua.c
Original file line number Diff line number Diff line change
Expand Up @@ -606,8 +606,8 @@ static int cb_lua_filter(const void *data, size_t bytes,

ret = flb_log_event_encoder_emit_raw_record(
&log_encoder,
&((char *) data)[record_begining],
record_end);
log_decoder.record_base,
log_decoder.record_length);

if (ret != FLB_EVENT_ENCODER_SUCCESS) {
flb_plg_error(ctx->ins,
Expand Down

0 comments on commit d08533b

Please sign in to comment.