svn commit: trunk/busybox/miscutils

andersen at busybox.net andersen at busybox.net
Mon Jan 30 22:33:31 UTC 2006


Author: andersen
Date: 2006-01-30 14:33:31 -0800 (Mon, 30 Jan 2006)
New Revision: 13730

Log:
make certain we dereference the pointer as a time_t, esp on x86_64
where it might otherwise not be dereferenced as such by default


Modified:
   trunk/busybox/miscutils/last.c


Changeset:
Modified: trunk/busybox/miscutils/last.c
===================================================================
--- trunk/busybox/miscutils/last.c	2006-01-30 22:30:41 UTC (rev 13729)
+++ trunk/busybox/miscutils/last.c	2006-01-30 22:33:31 UTC (rev 13730)
@@ -100,7 +100,7 @@
 		}
 
 		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);




More information about the busybox-cvs mailing list