From bab5a90f411290ffbcd6121a0510394bd143f102 Mon Sep 17 00:00:00 2001 From: YingJie Fu Date: Tue, 13 Aug 2024 18:27:09 -0700 Subject: [PATCH] in_head: fix cannot allocate memory on big endian system Signed-off-by: YingJie Fu --- 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 bf2a1ea2034..afc4be53fef 100644 --- a/plugins/in_head/in_head.c +++ b/plugins/in_head/in_head.c @@ -426,7 +426,7 @@ static struct flb_config_map config_map[] = { "Set the record key" }, { - FLB_CONFIG_MAP_INT, "buf_size", DEFAULT_BUF_SIZE, + FLB_CONFIG_MAP_SIZE, "buf_size", DEFAULT_BUF_SIZE, 0, FLB_TRUE, offsetof(struct flb_in_head_config, buf_size), "Set the read buffer size" },