[BACK]Return to sshlogin.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/sshlogin.c between version 1.16 and 1.17

version 1.16, 2006/03/25 13:17:03 version 1.17, 2006/03/25 18:36:15
Line 56 
Line 56 
  * information is not available.  This must be called before record_login.   * information is not available.  This must be called before record_login.
  * The host the user logged in from will be returned in buf.   * The host the user logged in from will be returned in buf.
  */   */
 u_long  time_t
 get_last_login_time(uid_t uid, const char *logname,  get_last_login_time(uid_t uid, const char *logname,
     char *buf, u_int bufsize)      char *buf, size_t bufsize)
 {  {
         struct lastlog ll;          struct lastlog ll;
         char *lastlog;          char *lastlog;
Line 91 
Line 91 
                 bufsize = sizeof(ll.ll_host) + 1;                  bufsize = sizeof(ll.ll_host) + 1;
         strncpy(buf, ll.ll_host, bufsize - 1);          strncpy(buf, ll.ll_host, bufsize - 1);
         buf[bufsize - 1] = '\0';          buf[bufsize - 1] = '\0';
         return ll.ll_time;          return (time_t)ll.ll_time;
 }  }
   
 /*  /*

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17