From: Howard Chu Date: Mon, 27 Nov 2006 04:15:55 +0000 (+0000) Subject: Revert rbuf length setting in prev commit X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~439 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ead61fbfad6655f1b99b11445604bf28b43260e2;p=openldap Revert rbuf length setting in prev commit --- diff --git a/clients/tools/ldapmodify.c b/clients/tools/ldapmodify.c index 8dc0403fc3..5556b54634 100644 --- a/clients/tools/ldapmodify.c +++ b/clients/tools/ldapmodify.c @@ -335,7 +335,7 @@ main( int argc, char **argv ) &rbuf, &lmax )) { if ( rejfp ) { - len = lmax; + len = strlen( rbuf ); if (( rejbuf = (char *)ber_memalloc( len+1 )) == NULL ) { perror( "malloc" ); exit( EXIT_FAILURE );