From e277059339844d7f7dc45743fc45109a86d17218 Mon Sep 17 00:00:00 2001 From: Matt Johnston <matt@ucc.asn.au> Date: Sun, 13 Jan 2008 04:02:08 +0000 Subject: [PATCH] fix up after merge --HG-- extra : convert_revision : 6107b89c1188975d0c60f50621afe593cb6e554f --- svr-chansession.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/svr-chansession.c b/svr-chansession.c index da3fe8df..7cedb8e3 100644 --- a/svr-chansession.c +++ b/svr-chansession.c @@ -799,10 +799,10 @@ static int ptycommand(struct Channel *channel, struct ChanSess *chansess) { /* don't show the motd if ~/.hushlogin exists */ /* 12 == strlen("/.hushlogin\0") */ - len = strlen(ses.authstate.pw->pw_dir) + 12; + len = strlen(ses.authstate.pw_dir) + 12; hushpath = m_malloc(len); - snprintf(hushpath, len, "%s/.hushlogin", ses.authstate.pw->pw_dir); + snprintf(hushpath, len, "%s/.hushlogin", ses.authstate.pw_dir); if (stat(hushpath, &sb) < 0) { /* more than a screenful is stupid IMHO */ -- GitLab