Increase the buffer sizes for the build deps, run deps, and the line

itself verbatim from INDEX.  This fixes seg. faults with newer INDEX
files which have some gnome ports with outrageously long run deps.

Approved by:	jkh
This commit is contained in:
dd 2001-06-22 21:47:55 +00:00
parent fda3cb47bb
commit 72fb52d783

View File

@ -272,8 +272,8 @@ readline(FILE *fp, char *buf, int max)
int
index_parse(FILE *fp, char *name, char *pathto, char *prefix, char *comment, char *descr, char *maint, char *cats, char *rdeps)
{
char line[2048];
char junk[511];
char line[10240];
char junk[2048];
char *cp;
int i;
@ -299,7 +299,7 @@ index_parse(FILE *fp, char *name, char *pathto, char *prefix, char *comment, cha
int
index_read(FILE *fp, PkgNodePtr papa)
{
char name[127], pathto[255], prefix[255], comment[255], descr[127], maint[127], cats[511], deps[1024];
char name[127], pathto[255], prefix[255], comment[255], descr[127], maint[127], cats[511], deps[2048];
PkgNodePtr i;
while (index_parse(fp, name, pathto, prefix, comment, descr, maint, cats, deps) != EOF) {