From: Pierangelo Masarati Date: Fri, 26 Apr 2002 08:58:01 +0000 (+0000) Subject: fix offbyone bug in logging X-Git-Tag: OPENLDAP_REL_ENG_2_0_24~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=136bcf5b1810dd5c689fd91d70568359483c8687;p=thirdparty%2Fopenldap.git fix offbyone bug in logging --- diff --git a/servers/slurpd/ldap_op.c b/servers/slurpd/ldap_op.c index 6c1c2f19db..428f4c506b 100644 --- a/servers/slurpd/ldap_op.c +++ b/servers/slurpd/ldap_op.c @@ -449,7 +449,7 @@ op_ldap_modrdn( char *buf2; sprintf( buf, "%s:%d", ri->ri_hostname, ri->ri_port ); buf2 = (char *) ch_malloc( strlen( re->re_dn ) + strlen( mi->mi_val ) - + 10 ); + + 11 ); sprintf( buf2, "(\"%s\" -> \"%s\")", re->re_dn, mi->mi_val ); Debug( LDAP_DEBUG_ARGS, "replica %s - modify rdn %s (flag: %d)\n",