From 98cabe05469dd5ed132b47d95177867c70992c8b Mon Sep 17 00:00:00 2001 From: andre Date: Mon, 19 Jun 2000 09:11:30 +0000 Subject: *** empty log message *** --- loginrec.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/loginrec.c b/loginrec.c index e51d686bf..8df2e78e2 100644 --- a/loginrec.c +++ b/loginrec.c @@ -170,7 +170,7 @@ #include "xmalloc.h" #include "loginrec.h" -RCSID("$Id: loginrec.c,v 1.7 2000/06/19 08:20:03 andre Exp $"); +RCSID("$Id: loginrec.c,v 1.8 2000/06/19 09:11:30 andre Exp $"); /** ** prototypes for helper functions in this file @@ -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; -- cgit v1.2.3