From 3ea2de7a8634fe35fa97605286d58524771c2a19 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 11 May 2000 21:21:18 +0000 Subject: [PATCH] Fix off-by-one in allocation of urlpre --- clients/tools/ldapsearch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" ); -- 2.39.5