]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
src/chfn.c: slop: Reduce buffer size
authorAlejandro Colomar <alx@kernel.org>
Sat, 19 Jul 2025 08:36:33 +0000 (10:36 +0200)
committerSerge Hallyn <serge@hallyn.com>
Sat, 9 Aug 2025 23:00:36 +0000 (18:00 -0500)
We never use more than BUFSIZ.  (And we could use way less than that.)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
src/chfn.c

index 4c7f5c55914bb46cc0e19e12e194881cc2ab0f1b..b4f913ba1b5665d4d0aaeaf24e67030b4c0e8f33 100644 (file)
@@ -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                */