From 64be7b12c3c5942ac1d4cda9640986f627f29c36 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 6b346b57790..d3c13c4e859 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");