1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-12 09:58:36 +00:00

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:
Dima Dorfman 2001-06-22 21:47:55 +00:00
parent b0b7095861
commit 3676cbfbf4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78630

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) {