Skip to content

Commit 4391214

Browse files
committed
filter: pass null terminated tag to filter callback (#1343)
Signed-off-by: Eduardo Silva <[email protected]>
1 parent 1602ee0 commit 4391214

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/flb_filter.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ void flb_filter_do(struct flb_input_chunk *ic,
8686
memcpy(ntag, tag, tag_len);
8787
ntag[tag_len] = '\0';
8888

89-
9089
work_data = (const char *) data;
9190
work_size = bytes;
9291

@@ -118,7 +117,7 @@ void flb_filter_do(struct flb_input_chunk *ic,
118117
/* Invoke the filter callback */
119118
ret = f_ins->p->cb_filter(work_data, /* msgpack buffer */
120119
work_size, /* msgpack size */
121-
tag, tag_len, /* input tag */
120+
ntag, tag_len, /* input tag */
122121
&out_buf, /* new data */
123122
&out_size, /* new data size */
124123
f_ins, /* filter instance */

0 commit comments

Comments
 (0)