.......PS. [ZBX-8324] fixed formatting; replaced zbx_snprintf_alloc() with zbx_strcpy_alloc() where it was possible; removed excess spaces