From 1bfbb762240417dd65e7826dfd132f92904a6869 Mon Sep 17 00:00:00 2001 From: andre Date: Mon, 19 Jun 2000 09:11:30 +0000 Subject: [PATCH] *** empty log message *** --- loginrec.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/loginrec.c b/loginrec.c index 6234147c..844e9668 100644 --- a/loginrec.c +++ b/loginrec.c @@ -301,8 +301,9 @@ login_get_lastlog(struct logininfo *li, const int uid) * reliably search wtmp(x) for the last login (see * wtmp_get_entry().) */ pw = getpwuid(uid); - strlcpy(li->username, pw->pw_name, - MIN_SIZEOF(li->username, pw->pw_name)); + /* No MIN_SIZEOF here - we absolutely *must not* truncate the + * username */ + strlcpy(li->username, pw->pw_name, li->username); #endif if (getlast_entry(li)) return li; -- 2.45.2