diff options
-rw-r--r-- | login-utils/last.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/login-utils/last.c b/login-utils/last.c index 7848dd0da..7029963cc 100644 --- a/login-utils/last.c +++ b/login-utils/last.c @@ -434,9 +434,10 @@ static int list(const struct last_control *ctl, struct utmp *p, time_t t, int wh epoch = time(NULL); if (t == epoch) { - if (ctl->fulltime) + if (ctl->fulltime) { sprintf(logouttime, " still running"); - else { + length[0] = 0; + } else { sprintf(logouttime, " still"); sprintf(length, "running"); } |