diff options
-rw-r--r-- | session.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -749,7 +749,7 @@ do_login(Session *s) | |||
749 | time_string = ctime(&last_login_time); | 749 | time_string = ctime(&last_login_time); |
750 | if (strchr(time_string, '\n')) | 750 | if (strchr(time_string, '\n')) |
751 | *strchr(time_string, '\n') = 0; | 751 | *strchr(time_string, '\n') = 0; |
752 | if (strcmp(buf, "") == 0) | 752 | if (strcmp(hostname, "") == 0) |
753 | printf("Last login: %s\r\n", time_string); | 753 | printf("Last login: %s\r\n", time_string); |
754 | else | 754 | else |
755 | printf("Last login: %s from %s\r\n", time_string, hostname); | 755 | printf("Last login: %s from %s\r\n", time_string, hostname); |