summaryrefslogtreecommitdiff
path: root/usr.sbin/quotaon
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-05-22 09:09:33 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-05-22 09:09:33 +0000
commit79c512971e63b9113a378f3d82f239e6518a390b (patch)
tree60a70a4351b5c752d36c6be85e06dfe53d24dfde /usr.sbin/quotaon
parent81ed744a68ae422432934fb4032bbb35f4b0862d (diff)
more strcpy/sprintf death; mpech ok
Diffstat (limited to 'usr.sbin/quotaon')
-rw-r--r--usr.sbin/quotaon/quotaon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/quotaon/quotaon.c b/usr.sbin/quotaon/quotaon.c
index 1b95735b6f9..f606df31eca 100644
--- a/usr.sbin/quotaon/quotaon.c
+++ b/usr.sbin/quotaon/quotaon.c
@@ -42,7 +42,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)quotaon.c 8.1 (Berkeley) 6/6/93";*/
-static char *rcsid = "$Id: quotaon.c,v 1.12 2002/03/14 16:44:25 mpech Exp $";
+static char *rcsid = "$Id: quotaon.c,v 1.13 2002/05/22 09:09:32 deraadt Exp $";
#endif /* not lint */
/*
@@ -219,7 +219,7 @@ hasquota(fs, type, qfnamep, force)
sprintf(grpname, "%s%s", qfextension[GRPQUOTA], qfname);
initname = 1;
}
- strcpy(buf, fs->fs_mntops);
+ strlcpy(buf, fs->fs_mntops, sizeof buf);
for (opt = strtok(buf, ","); opt; opt = strtok(NULL, ",")) {
if (cp = strchr(opt, '='))
*cp++ = '\0';