# HG changeset patch # User Matt Johnston # Date 1200196928 0 # Node ID f11544d96354ef506464183fb988f4d541b29ab0 # Parent af3307f46a3d7ce3926496c550770f07f48d885a fix up after merge diff -r af3307f46a3d -r f11544d96354 svr-chansession.c --- a/svr-chansession.c Sun Jan 13 04:01:46 2008 +0000 +++ b/svr-chansession.c Sun Jan 13 04:02:08 2008 +0000 @@ -799,10 +799,10 @@ /* 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 */