[Git][openldap/openldap][OPENLDAP_REL_ENG_2_6] 7 commits: ITS#10410 WIN32 logging: simplify buffer calculation