]> git.sur5r.net Git - openldap/commitdiff
ITS#5897 fix bval length of serverID w/URL
authorHoward Chu <hyc@openldap.org>
Tue, 20 Jan 2009 23:31:33 +0000 (23:31 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 20 Jan 2009 23:31:33 +0000 (23:31 +0000)
servers/slapd/bconfig.c

index c59d9556b8ab2946056a0b04f5a129b5315194aa..8018848f759dadecb19ab84321234387cc956f5f 100644 (file)
@@ -1028,7 +1028,7 @@ config_generic(ConfigArgs *c) {
                                        if ( !BER_BVISEMPTY( &si->si_url )) {
                                                bv.bv_len = si->si_url.bv_len + 6;
                                                bv.bv_val = ch_malloc( bv.bv_len );
-                                               sprintf( bv.bv_val, "%d %s", si->si_num,
+                                               bv.bv_len = sprintf( bv.bv_val, "%d %s", si->si_num,
                                                        si->si_url.bv_val );
                                                ber_bvarray_add( &c->rvalue_vals, &bv );
                                        } else {