Skip to content
Snippets Groups Projects
Commit 3ea2de7a authored by Howard Chu's avatar Howard Chu
Browse files

Fix off-by-one in allocation of urlpre

parent 43e97bfb
No related branches found
No related tags found
No related merge requests found
......@@ -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" );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment