From aa733cd0c55c42746cd00f3bfc662765117771a8 Mon Sep 17 00:00:00 2001 From: "Jordan K. Hubbard" Date: Sat, 5 Apr 1997 07:08:14 +0000 Subject: [PATCH] YAMF22 --- release/sysinstall/index.c | 8 +++++--- usr.sbin/sysinstall/index.c | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/release/sysinstall/index.c b/release/sysinstall/index.c index 5e426fbabace..42dee8c8dd66 100644 --- a/release/sysinstall/index.c +++ b/release/sysinstall/index.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: index.c,v 1.38.2.7 1997/03/27 00:41:00 jkh Exp $ + * $Id: index.c,v 1.48 1997/03/29 06:44:46 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -235,8 +235,10 @@ index_parse(FILE *fp, char *name, char *pathto, char *prefix, char *comment, cha cp += copy_to_sep(maint, cp, '|'); cp += copy_to_sep(cats, cp, '|'); cp += copy_to_sep(junk, cp, '|'); /* build deps - not used */ - (void)copy_to_sep(rdeps, cp, '|'); - /* We're not actually interested in any of the other fields */ + if (index(cp, '|')) + copy_to_sep(rdeps, cp, '|'); + else + strncpy(rdeps, cp, 510); return 0; } diff --git a/usr.sbin/sysinstall/index.c b/usr.sbin/sysinstall/index.c index 5e426fbabace..42dee8c8dd66 100644 --- a/usr.sbin/sysinstall/index.c +++ b/usr.sbin/sysinstall/index.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: index.c,v 1.38.2.7 1997/03/27 00:41:00 jkh Exp $ + * $Id: index.c,v 1.48 1997/03/29 06:44:46 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -235,8 +235,10 @@ index_parse(FILE *fp, char *name, char *pathto, char *prefix, char *comment, cha cp += copy_to_sep(maint, cp, '|'); cp += copy_to_sep(cats, cp, '|'); cp += copy_to_sep(junk, cp, '|'); /* build deps - not used */ - (void)copy_to_sep(rdeps, cp, '|'); - /* We're not actually interested in any of the other fields */ + if (index(cp, '|')) + copy_to_sep(rdeps, cp, '|'); + else + strncpy(rdeps, cp, 510); return 0; }