summaryrefslogtreecommitdiff
path: root/usr.sbin/bad144
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-12-05 06:32:48 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-12-05 06:32:48 +0000
commit8c99d95569dd8f0184d094ffd9fd1483c7312b37 (patch)
treee3fca56b4cb61629fa580ce45bcdacdb40556335 /usr.sbin/bad144
parent40158ddc3b4d517e01a460fa110820202126dc59 (diff)
oflow
Diffstat (limited to 'usr.sbin/bad144')
-rw-r--r--usr.sbin/bad144/bad144.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bad144/bad144.c b/usr.sbin/bad144/bad144.c
index 8dc85009cc5..5c449430080 100644
--- a/usr.sbin/bad144/bad144.c
+++ b/usr.sbin/bad144/bad144.c
@@ -39,7 +39,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)bad144.c 8.1 (Berkeley) 6/6/93";*/
-static char *rcsid = "$Id: bad144.c,v 1.5 1999/06/16 10:23:17 espie Exp $";
+static char *rcsid = "$Id: bad144.c,v 1.6 1999/12/05 06:32:47 deraadt Exp $";
#endif not lint
/*
@@ -152,7 +152,7 @@ usage:
(void)sprintf(name, "%sr%s%c", _PATH_DEV, argv[0],
'a' + RAW_PART);
else
- strcpy(name, argv[0]);
+ strlcpy(name, argv[0], MAXPATHLEN);
f = open(name, argc == 1? O_RDONLY : O_RDWR);
if (f < 0)
Perror(name);