summaryrefslogtreecommitdiff
path: root/bin/sh/mkinit.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1996-09-15 22:58:10 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1996-09-15 22:58:10 +0000
commit940b14abb425d608a4f941c7873f0656ac64b452 (patch)
treec940a773b08bfe9826ef12a6aa0e8ccad4edfc9e /bin/sh/mkinit.c
parent186adabdffcd89165bbd1c591f4081e23316cce3 (diff)
sprintf -> snprintf paranoia
Diffstat (limited to 'bin/sh/mkinit.c')
-rw-r--r--bin/sh/mkinit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/sh/mkinit.c b/bin/sh/mkinit.c
index 8a5df1ff9d0..9750b99813c 100644
--- a/bin/sh/mkinit.c
+++ b/bin/sh/mkinit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mkinit.c,v 1.3 1996/06/23 14:21:23 deraadt Exp $ */
+/* $OpenBSD: mkinit.c,v 1.4 1996/09/15 22:58:09 millert Exp $ */
/* $NetBSD: mkinit.c,v 1.14 1996/02/18 12:29:21 mycroft Exp $ */
/*-
@@ -47,7 +47,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)mkinit.c 8.2 (Berkeley) 5/4/95";
#else
-static char rcsid[] = "$OpenBSD: mkinit.c,v 1.3 1996/06/23 14:21:23 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: mkinit.c,v 1.4 1996/09/15 22:58:09 millert Exp $";
#endif
#endif /* not lint */
@@ -275,7 +275,7 @@ doevent(ep, fp, fname)
int indent;
char *p;
- sprintf(line, "\n /* from %s: */\n", fname);
+ snprintf(line, sizeof(line), "\n /* from %s: */\n", fname);
addstr(line, &ep->code);
addstr(" {\n", &ep->code);
for (;;) {