From cdc758198b54b675b3ff92af7b157d381de21d36 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sun, 30 Mar 2003 20:47:43 +0000 Subject: snprintf; millert ok --- usr.sbin/repquota/repquota.c | 4 ++-- 1 file 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); } -- cgit v1.2.3