summaryrefslogtreecommitdiff
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
parent8d3ebb418af75277ac8ed3fccc2ab8d73c6bced3 (diff)
comparing against buf and not hostname; openbsd tree has this
problem also.
-rw-r--r--session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/session.c b/session.c
index e968e417..a12e2a0d 100644
--- a/session.c
+++ b/session.c
@@ -749,7 +749,7 @@ do_login(Session *s)
time_string = ctime(&last_login_time);
if (strchr(time_string, '\n'))
*strchr(time_string, '\n') = 0;
- if (strcmp(buf, "") == 0)
+ if (strcmp(hostname, "") == 0)
printf("Last login: %s\r\n", time_string);
else
printf("Last login: %s from %s\r\n", time_string, hostname);