From a46e19214b9869188b840da6cd88da35afbcbbb9 Mon Sep 17 00:00:00 2001 From: Christian Goeschel Ndjomouo Date: Tue, 13 Jan 2026 23:45:03 -0500 Subject: [PATCH] chfn: use null character (0) for better readability Signed-off-by: Christian Goeschel Ndjomouo --- login-utils/chfn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/login-utils/chfn.c b/login-utils/chfn.c index 27bdddaaa..2096f2425 100644 --- a/login-utils/chfn.c +++ b/login-utils/chfn.c @@ -374,7 +374,7 @@ static int save_new_data(struct chfn_control *ctl) if (!ctl->newf.other || !*ctl->newf.other) { while (len > 0 && gecos[len - 1] == ',') len--; - gecos[len] = 0; + gecos[len] = '\0'; } #ifdef HAVE_LIBUSER -- 2.47.3