diff options
author | Denis Vlasenko | 2008-07-11 13:57:08 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-07-11 13:57:08 +0000 |
commit | 0e52541917a80a4c5aee9d32fcc81cf9967f2aed (patch) | |
tree | 26351601d9b046a8834e9a462dc261c21877de9a /miscutils/last.c | |
parent | 88643a86d07f31779b96f0beef23050b951e2fd1 (diff) | |
download | busybox-0e52541917a80a4c5aee9d32fcc81cf9967f2aed.zip busybox-0e52541917a80a4c5aee9d32fcc81cf9967f2aed.tar.gz |
taskset: fix some careless code in both fancy and non-fancy cases.
-5 bytes for fancy, +5 for non-fancy
Diffstat (limited to 'miscutils/last.c')
-rw-r--r-- | miscutils/last.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/miscutils/last.c b/miscutils/last.c index 8c8192b..f8c3013 100644 --- a/miscutils/last.c +++ b/miscutils/last.c @@ -117,6 +117,8 @@ int last_main(int argc, char **argv UNUSED_PARAM) strcpy(ut.ut_line, "system boot"); } } + /* manpages say ut_tv.tv_sec *is* time_t, + * but some systems have it wrong */ t_tmp = (time_t)ut.ut_tv.tv_sec; printf("%-10s %-14s %-18s %-12.12s\n", ut.ut_user, ut.ut_line, ut.ut_host, ctime(&t_tmp) + 4); |