summaryrefslogtreecommitdiff
path: root/sbin/quotacheck
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-03-11 02:32:32 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-03-11 02:32:32 +0000
commit8524f64196f2ba2661a0869c05109580b10ad62f (patch)
treedd837bdce198f6e67a7f3c4e305b42704505e992 /sbin/quotacheck
parent67638b1fc31d9cb577e822fcc385b0a5b6b5f221 (diff)
strcpy -> strlcpy; Hans-Joerg.Hoexer@yerbouti.franken.de
Diffstat (limited to 'sbin/quotacheck')
-rw-r--r--sbin/quotacheck/quotacheck.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/quotacheck/quotacheck.c b/sbin/quotacheck/quotacheck.c
index f7394031e21..3093983ce1d 100644
--- a/sbin/quotacheck/quotacheck.c
+++ b/sbin/quotacheck/quotacheck.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: quotacheck.c,v 1.14 2002/07/03 22:32:33 deraadt Exp $ */
+/* $OpenBSD: quotacheck.c,v 1.15 2003/03/11 02:32:31 deraadt Exp $ */
/* $NetBSD: quotacheck.c,v 1.12 1996/03/30 22:34:25 mark Exp $ */
/*
@@ -47,7 +47,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)quotacheck.c 8.3 (Berkeley) 1/29/94";
#else
-static char rcsid[] = "$OpenBSD: quotacheck.c,v 1.14 2002/07/03 22:32:33 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: quotacheck.c,v 1.15 2003/03/11 02:32:31 deraadt Exp $";
#endif
#endif /* not lint */
@@ -489,7 +489,7 @@ hasquota(struct fstab *fs, int type, char **qfnamep)
"%s%s", qfextension[GRPQUOTA], qfname);
initname = 1;
}
- strcpy(buf, fs->fs_mntops);
+ (void)strlcpy(buf, fs->fs_mntops, sizeof(buf));
for (opt = strtok(buf, ","); opt; opt = strtok(NULL, ",")) {
if ((cp = strchr(opt, '=')) != NULL)
*cp++ = '\0';