From: Christian Goeschel Ndjomouo Date: Wed, 14 Jan 2026 04:45:03 +0000 (-0500) Subject: chfn: use null character (0) for better readability X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a46e19214b9869188b840da6cd88da35afbcbbb9;p=thirdparty%2Futil-linux.git chfn: use null character (0) for better readability Signed-off-by: Christian Goeschel Ndjomouo --- 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