Fix a bogon with playpen size calculation for pkg of "-". It's amazing

this ever worked, actually.
This commit is contained in:
Jordan K. Hubbard 1997-02-15 14:17:28 +00:00
parent c4ebcb3423
commit 2df00d4c64

View File

@ -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);