summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/session.c b/session.c
index e968e417e..a12e2a0d8 100644
--- a/session.c
+++ b/session.c
@@ -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);