From c368a3c93995be732f95be2afadbe4a42977b6bd Mon Sep 17 00:00:00 2001 From: Kevin Steves Date: Sat, 14 Oct 2000 16:10:06 +0000 Subject: comparing against buf and not hostname; openbsd tree has this problem also. --- session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'session.c') 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) 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); -- cgit v1.2.3