summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorKevin Steves <stevesk@pobox.com>2000-10-14 16:10:06 +0000
committerKevin Steves <stevesk@pobox.com>2000-10-14 16:10:06 +0000
commitc368a3c93995be732f95be2afadbe4a42977b6bd (patch)
treed5102772816884eff70e02e5e2213436f97be04e /session.c
parent8d3ebb418af75277ac8ed3fccc2ab8d73c6bced3 (diff)
comparing against buf and not hostname; openbsd tree has this
problem also.
Diffstat (limited to 'session.c')
-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);