diff options
author | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-04-25 18:55:40 +0000 |
---|---|---|
committer | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-04-25 18:55:40 +0000 |
commit | e1ba7bded698f4a3fc2a1a6cb3f6c1270412e0cd (patch) | |
tree | 2cd8125eeba0e3e408f23a0a2bdf0e135427b609 /usr.sbin/edquota/edquota.c | |
parent | 97fb7b52b93ba475083e8f8bbcbb4f8ec8a33b93 (diff) |
replace an unbounded %s in a sscanf with a bounded one
ok millert@
Diffstat (limited to 'usr.sbin/edquota/edquota.c')
-rw-r--r-- | usr.sbin/edquota/edquota.c | 4 |
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); |