From 103c5448ace009f583e88df22a39affd0ba0c2cb Mon Sep 17 00:00:00 2001 From: Phillip Whelan Date: Tue, 6 Feb 2024 17:27:43 -0300 Subject: [PATCH] out_calyptia: add missing parameter for msgpack_str for windows os field. Signed-off-by: Phillip Whelan --- plugins/out_calyptia/calyptia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/out_calyptia/calyptia.c b/plugins/out_calyptia/calyptia.c index b56b2e4c487..aa760e2fa5e 100644 --- a/plugins/out_calyptia/calyptia.c +++ b/plugins/out_calyptia/calyptia.c @@ -244,7 +244,7 @@ static flb_sds_t get_agent_metadata(struct flb_calyptia *ctx) msgpack_pack_str_body(&mp_pck, "os", 2); #ifdef FLB_SYSTEM_WINDOWS len = strlen("windows"); - msgpack_pack_str(&mp_pck); + msgpack_pack_str(&mp_pck, len); msgpack_pack_str_body(&mp_pck, "windows", len); #elif FLB_SYSTEM_MACOS len = strlen("macos");