From: Howard Chu Date: Thu, 11 May 2000 21:21:18 +0000 (+0000) Subject: Fix off-by-one in allocation of urlpre X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~3000 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3ea2de7a8634fe35fa97605286d58524771c2a19;p=openldap Fix off-by-one in allocation of urlpre --- diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index 00421fbc86..694fd24ddb 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -444,7 +444,7 @@ main( int argc, char **argv ) } if( urlpre == NULL ) { - urlpre = malloc( sizeof("file:///") + strlen(tmpdir) ); + urlpre = malloc( sizeof("file:////") + strlen(tmpdir) ); if( urlpre == NULL ) { perror( "malloc" );