diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-03-30 20:47:43 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-03-30 20:47:43 +0000 |
commit | cdc758198b54b675b3ff92af7b157d381de21d36 (patch) | |
tree | 790cfa50a09772ce2c1c93a62630d73ac6f383e7 | |
parent | a8b5c4b7bfd41321a0f012f32365c414ce723c16 (diff) |
snprintf; millert ok
-rw-r--r-- | usr.sbin/repquota/repquota.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/repquota/repquota.c b/usr.sbin/repquota/repquota.c index 6218baf5226..9da62dd933d 100644 --- a/usr.sbin/repquota/repquota.c +++ b/usr.sbin/repquota/repquota.c @@ -42,7 +42,7 @@ static char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)repquota.c 8.1 (Berkeley) 6/6/93";*/ -static char *rcsid = "$Id: repquota.c,v 1.19 2002/09/06 21:49:21 deraadt Exp $"; +static char *rcsid = "$Id: repquota.c,v 1.20 2003/03/30 20:47:42 deraadt Exp $"; #endif /* not lint */ /* @@ -364,7 +364,7 @@ addid(id, type, name) if (name) { bcopy(name, fup->fu_name, len + 1); } else { - sprintf(fup->fu_name, "%u", id); + snprintf(fup->fu_name, len, "%u", id); } return (fup); } |