From: Alejandro Colomar Date: Sat, 19 Jul 2025 08:36:33 +0000 (+0200) Subject: src/chfn.c: slop: Reduce buffer size X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46ffafc8c830f3cd23c959aba2099929aef7c748;p=thirdparty%2Fshadow.git src/chfn.c: slop: Reduce buffer size We never use more than BUFSIZ. (And we could use way less than that.) Signed-off-by: Alejandro Colomar --- diff --git a/src/chfn.c b/src/chfn.c index 4c7f5c559..b4f913ba1 100644 --- a/src/chfn.c +++ b/src/chfn.c @@ -47,7 +47,7 @@ static char fullnm[BUFSIZ]; static char roomno[BUFSIZ]; static char workph[BUFSIZ]; static char homeph[BUFSIZ]; -static char slop[BUFSIZ + 1 + 80]; +static char slop[BUFSIZ]; static bool amroot; /* Flags */ static bool fflg = false; /* -f - set full name */