mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 01:29:59 -05:00
Fix off-by-one in allocation of urlpre
This commit is contained in:
parent
43e97bfb7a
commit
3ea2de7a86
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue