From ead61fbfad6655f1b99b11445604bf28b43260e2 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 27 Nov 2006 04:15:55 +0000 Subject: [PATCH] Revert rbuf length setting in prev commit --- clients/tools/ldapmodify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.39.5