mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
Fix off-by-one in allocation of urlpre
This commit is contained in:
parent
43e97bfb7a
commit
3ea2de7a86
@ -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" );
|
||||
|
Loading…
Reference in New Issue
Block a user