Fix a bogon with playpen size calculation for pkg of "-". It's amazing
this ever worked, actually.
This commit is contained in:
parent
c4ebcb3423
commit
2df00d4c64
@ -114,8 +114,10 @@ pkg_do(char *pkg)
|
||||
sprintf(extract_contents, "--fast-read %s", CONTENTS_FNAME);
|
||||
extract = extract_contents;
|
||||
}
|
||||
else
|
||||
else {
|
||||
extract = NULL;
|
||||
sb.st_size = 100000; /* Make up a plausible average size */
|
||||
}
|
||||
Home = make_playpen(playpen, sb.st_size * 4);
|
||||
if (!Home)
|
||||
whinge("Unable to make playpen for %d bytes.\n", sb.st_size * 4);
|
||||
|
Loading…
Reference in New Issue
Block a user