]> git.sur5r.net Git - openldap/commitdiff
Fix off-by-one in allocation of urlpre
authorHoward Chu <hyc@openldap.org>
Thu, 11 May 2000 21:21:18 +0000 (21:21 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 11 May 2000 21:21:18 +0000 (21:21 +0000)
clients/tools/ldapsearch.c

index 00421fbc869489def796fcc7c92f81d91d4a5f0d..694fd24ddb7357aa04a42a1d461852824e1acadb 100644 (file)
@@ -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" );