summaryrefslogtreecommitdiffstats
path: root/usr.sbin/quotaon
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2002-05-22 09:09:32 +0000
committerderaadt <deraadt@openbsd.org>2002-05-22 09:09:32 +0000
commit2261d3e17ed89f657e62c341ce13baef19457ca1 (patch)
tree164075cf3e4c218c5213d4064c264a1401da6596 /usr.sbin/quotaon
parentSmall fix: - Start new sentence on a new line. (diff)
downloadwireguard-openbsd-2261d3e17ed89f657e62c341ce13baef19457ca1.tar.xz
wireguard-openbsd-2261d3e17ed89f657e62c341ce13baef19457ca1.zip
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';