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");