Chop off excessive long hostnames to keep the table structure intact.

This makes lastlogin(8) use exactly the same printf format as last(1).
This commit is contained in:
Ed Schouten 2010-03-20 09:29:25 +00:00
parent 69a5a0bfea
commit d7f1607c6a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=205365

View File

@ -91,7 +91,7 @@ output(struct utmpx *u)
{
time_t t = u->ut_tv.tv_sec;
printf("%-10s %-8s %-22s %s",
printf("%-10s %-8s %-22.22s %s",
u->ut_user, u->ut_line, u->ut_host, ctime(&t));
}