Fix off-by-one in allocation of urlpre

This commit is contained in:
Howard Chu 2000-05-11 21:21:18 +00:00
parent 43e97bfb7a
commit 3ea2de7a86

View 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" );