diff options
author | jkh <jkh@FreeBSD.org> | 1997-04-29 09:14:24 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1997-04-29 09:14:24 +0000 |
commit | bf4319fcdaf3775f9b2682049760b9db8e2cc635 (patch) | |
tree | b1d6933c70dbb4c107c504927c316045850907d1 /release | |
parent | 39cc207873a417d2ad4df487d720be65643ffa45 (diff) | |
download | FreeBSD-src-bf4319fcdaf3775f9b2682049760b9db8e2cc635.zip FreeBSD-src-bf4319fcdaf3775f9b2682049760b9db8e2cc635.tar.gz |
YAMF22
Diffstat (limited to 'release')
-rw-r--r-- | release/sysinstall/config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/sysinstall/config.c b/release/sysinstall/config.c index ba04f6a..16d2631 100644 --- a/release/sysinstall/config.c +++ b/release/sysinstall/config.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: config.c,v 1.88 1997/04/28 06:15:48 jkh Exp $ + * $Id: config.c,v 1.89 1997/04/28 10:31:13 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -391,7 +391,7 @@ configRC_conf(char *config) strcpy(comment, cp3); } free(lines[i]); - lines[i] = (char *)malloc(strlen(v->name) + strlen(v->value) + (comment ? 0 : strlen(comment)) + 10); + lines[i] = (char *)malloc(strlen(v->name) + strlen(v->value) + (comment ? strlen(comment) : 0) + 10); if (comment) sprintf(lines[i], "%s=\"%s\"\t\t%s\n", v->name, v->value, comment); else |