From 72fb52d783fd86f9ecb3f0db0f7f175aa2050f9d Mon Sep 17 00:00:00 2001 From: dd Date: Fri, 22 Jun 2001 21:47:55 +0000 Subject: [PATCH] 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 --- usr.sbin/sysinstall/index.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/sysinstall/index.c b/usr.sbin/sysinstall/index.c index fbd88516dc84..b6d5c00f7538 100644 --- a/usr.sbin/sysinstall/index.c +++ b/usr.sbin/sysinstall/index.c @@ -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) {