From 79c512971e63b9113a378f3d82f239e6518a390b Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 22 May 2002 09:09:33 +0000 Subject: more strcpy/sprintf death; mpech ok --- usr.sbin/quotaon/quotaon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/quotaon') 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'; -- cgit v1.2.3