summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config/mkmakefile.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-04-24 18:59:19 +0000
committerpeter <peter@FreeBSD.org>1999-04-24 18:59:19 +0000
commit6994e5b80181dda0367cc24342a59efbbfd24a10 (patch)
treefb0aa7dbe0a0bfc6150eaeb6ca9b74bbd2cb7c3e /usr.sbin/config/mkmakefile.c
parent3843abdc03deacf817f6459a1690b2911648a571 (diff)
downloadFreeBSD-src-6994e5b80181dda0367cc24342a59efbbfd24a10.zip
FreeBSD-src-6994e5b80181dda0367cc24342a59efbbfd24a10.tar.gz
More cleanups, tweaks and features.
- make this work: options FOO123=456 *without quotes* - grumble (but accept) vector xxxintr, and tty/net/bio/cam flags. - complain if a device is specified twice (eg: 2 x psm0) - don't require quotes around: port IO_COM2 - recognize negative numbers. (ie: options CAM_DEBUG_UNIT=-1) - GC some more unused stuff (we don't have composite disks from config(8)). - various other nits (snprintf paranoia etc)
Diffstat (limited to 'usr.sbin/config/mkmakefile.c')
-rw-r--r--usr.sbin/config/mkmakefile.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/config/mkmakefile.c b/usr.sbin/config/mkmakefile.c
index f5289c8..e1dfa2b 100644
--- a/usr.sbin/config/mkmakefile.c
+++ b/usr.sbin/config/mkmakefile.c
@@ -36,7 +36,7 @@
static char sccsid[] = "@(#)mkmakefile.c 8.1 (Berkeley) 6/6/93";
#endif
static const char rcsid[] =
- "$Id: mkmakefile.c,v 1.39 1999/04/18 13:36:29 peter Exp $";
+ "$Id: mkmakefile.c,v 1.40 1999/04/19 13:53:07 peter Exp $";
#endif /* not lint */
/*
@@ -569,7 +569,7 @@ do_objs(fp)
for (fl = conf_list; fl; fl = fl->f_next) {
if (fl->f_type != SWAPSPEC)
continue;
- (void) sprintf(swapname, "swap%s.c", fl->f_fn);
+ (void) snprintf(swapname, sizeof(swapname), "swap%s.c", fl->f_fn);
if (eq(sp, swapname))
goto cont;
}
@@ -618,7 +618,7 @@ do_cfiles(fp)
}
for (fl = conf_list; fl; fl = fl->f_next)
if (fl->f_type == SYSTEMSPEC) {
- (void) sprintf(swapname, "swap%s.c", fl->f_fn);
+ (void) snprintf(swapname, sizeof(swapname), "swap%s.c", fl->f_fn);
if ((len = 3 + strlen(swapname)) + lpos > 72) {
lpos = 8;
fputs("\\\n\t", fp);
@@ -763,7 +763,7 @@ do_rules(f)
printf("config: don't know rules for %s\n", np);
break;
}
- (void)sprintf(cmd, "${%s_%c%s}", ftype, toupper(och),
+ (void)snprintf(cmd, sizeof(cmd), "${%s_%c%s}", ftype, toupper(och),
ftp->f_flags & CONFIGDEP? "_C" : "");
special = cmd;
}
OpenPOWER on IntegriCloud