]> git.sur5r.net Git - openldap/commitdiff
fix offbyone bug in logging
authorPierangelo Masarati <ando@openldap.org>
Fri, 26 Apr 2002 08:58:01 +0000 (08:58 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 26 Apr 2002 08:58:01 +0000 (08:58 +0000)
servers/slurpd/ldap_op.c

index 6c1c2f19dbb6a5ab15eb707eb54094ab6fdcd2cb..428f4c506b32e7799dc410c46b5166a2a984f7cf 100644 (file)
@@ -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",