[Git][openldap/openldap][master] ITS#9578 ldif: terminate buf after truncating \r