projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0cb6f35
)
make certain we dereference the pointer as a time_t, esp on x86_64
author
Eric Andersen
<andersen@codepoet.org>
Mon, 30 Jan 2006 22:33:31 +0000
(22:33 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Mon, 30 Jan 2006 22:33:31 +0000
(22:33 -0000)
where it might otherwise not be dereferenced as such by default
miscutils/last.c
patch
|
blob
|
history
diff --git
a/miscutils/last.c
b/miscutils/last.c
index 86613bf27a88b32f032e9b9ebd96f7a17c9511e1..d7ce5e775bc689f474230d215beb6baba99f9151 100644
(file)
--- a/
miscutils/last.c
+++ b/
miscutils/last.c
@@
-100,7
+100,7
@@
extern int last_main(int argc, char **argv)
}
printf("%-10s %-14s %-18s %-12.12s\n", ut.ut_user, ut.ut_line, ut.ut_host,
- ctime(&(ut.ut_tv.tv_sec)) + 4);
+ ctime(
(time_t *)
&(ut.ut_tv.tv_sec)) + 4);
}
bb_fflush_stdout_and_exit(EXIT_SUCCESS);