Changeset 132 for trunk/src/sh_utmp.c
- Timestamp:
- Oct 23, 2007, 11:44:41 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_utmp.c
r68 r132 799 799 ) { 800 800 status = sh_utmp_login_a(user->name); 801 (void) s l_strlcpy(ttt, sh_unix_time (user->time), TIM_MAX);801 (void) sh_unix_time (user->time, ttt, TIM_MAX); 802 802 sh_error_handle( ShUtmpLoginSolo, FIL__, __LINE__, 0, 803 803 #if defined(HAVE_UTHOST) && defined(HAVE_UTADDR) … … 823 823 { 824 824 status = sh_utmp_login_a(user->name); 825 (void) s l_strlcpy(ttt, sh_unix_time (user->time), TIM_MAX);825 (void) sh_unix_time (user->time, ttt, TIM_MAX); 826 826 sh_error_handle( ShUtmpLoginMulti, FIL__, __LINE__, 0, 827 827 #if defined(HAVE_UTHOST) && defined(HAVE_UTADDR) … … 858 858 { 859 859 status = sh_utmp_login_r(user->name); 860 /* sl_strlcpy(ttt, sh_unix_time (user->time), TIM_MAX); */ 861 (void) sl_strlcpy(ttt, sh_unix_time (ut->ut_time), TIM_MAX); 860 (void) sh_unix_time (ut->ut_time, ttt, TIM_MAX); 862 861 sh_error_handle( ShUtmpLogout, FIL__, __LINE__, 0, 863 862 #if defined(HAVE_UTHOST) && defined(HAVE_UTADDR) … … 889 888 { 890 889 (void) sl_strlcpy(terminated_line, ut->ut_line, UT_HOSTSIZE); 891 (void) s l_strlcpy(ttt, sh_unix_time (ut->ut_time), TIM_MAX);890 (void) sh_unix_time (ut->ut_time, ttt, TIM_MAX); 892 891 sh_error_handle( ShUtmpLogout, FIL__, __LINE__, 0, 893 892 MSG_UT_LG3C, … … 920 919 userlist = user; 921 920 922 sl_strlcpy(ttt, sh_unix_time (user->time), TIM_MAX);921 (void) sh_unix_time (user->time, ttt, TIM_MAX); 923 922 924 923 … … 946 945 else /* probably a logout */ 947 946 { 948 sl_strlcpy(ttt, sh_unix_time (ut->ut_time), TIM_MAX); 949 /* sl_strlcpy(ttt, sh_unix_time (user->time), TIM_MAX); */ 947 (void) sh_unix_time (ut->ut_time, ttt, TIM_MAX); 950 948 951 949 sh_error_handle( ShUtmpLogout, FIL__, __LINE__, 0,
Note:
See TracChangeset
for help on using the changeset viewer.