[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.25 and 1.26

version 1.25, 2006/08/03 03:34:42 version 1.26, 2007/09/11 15:47:17
Line 122 
Line 122 
   
         if (last_login_time != 0) {          if (last_login_time != 0) {
                 time_string = ctime(&last_login_time);                  time_string = ctime(&last_login_time);
                 if (strchr(time_string, '\n'))                  time_string[strcspn(time_string, "\n")] = '\0';
                     *strchr(time_string, '\n') = '\0';  
                 if (strcmp(hostname, "") == 0)                  if (strcmp(hostname, "") == 0)
                         snprintf(buf, sizeof(buf), "Last login: %s\r\n",                          snprintf(buf, sizeof(buf), "Last login: %s\r\n",
                             time_string);                              time_string);

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26