summaryrefslogtreecommitdiffstats
path: root/usr.sbin/edquota
diff options
context:
space:
mode:
authoravsm <avsm@openbsd.org>2003-04-25 18:55:39 +0000
committeravsm <avsm@openbsd.org>2003-04-25 18:55:39 +0000
commit6cb573c1aeb2898b97371f6dc42977696fd80c92 (patch)
tree199d193c0f262a3fefb1ea093a98961d99f28450 /usr.sbin/edquota
parentsync (diff)
downloadwireguard-openbsd-6cb573c1aeb2898b97371f6dc42977696fd80c92.tar.xz
wireguard-openbsd-6cb573c1aeb2898b97371f6dc42977696fd80c92.zip
replace an unbounded %s in a sscanf with a bounded one
ok millert@
Diffstat (limited to 'usr.sbin/edquota')
-rw-r--r--usr.sbin/edquota/edquota.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/edquota/edquota.c b/usr.sbin/edquota/edquota.c
index 5e56953e9f1..e3bad0703f8 100644
--- a/usr.sbin/edquota/edquota.c
+++ b/usr.sbin/edquota/edquota.c
@@ -42,7 +42,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)edquota.c 8.1 (Berkeley) 6/6/93";*/
-static char *rcsid = "$Id: edquota.c,v 1.37 2003/04/02 20:30:09 deraadt Exp $";
+static char *rcsid = "$Id: edquota.c,v 1.38 2003/04/25 18:55:39 avsm Exp $";
#endif /* not lint */
/*
@@ -631,7 +631,7 @@ readtimes(quplist, infd)
return(0);
}
cnt = sscanf(cp,
- " block grace period: %d %s file grace period: %d %s",
+ " block grace period: %d %9s file grace period: %d %9s",
(int *)&btime, bunits, (int *)&itime, iunits);
if (cnt != 4) {
warnx("%s:%s: bad format", fsp, cp);