--- imap/ANSI/c-client/log_lnx.c.orig Sat Mar 15 17:50:14 1997 +++ imap/ANSI/c-client/log_lnx.c Sat Mar 15 18:20:57 1997 @@ -53,7 +53,10 @@ struct spwd *spw; struct passwd *pw = getpwnam (user); /* allow case-independent match */ - if (!pw) pw = getpwnam (lcase (strcpy (tmp,user))); + if (!pw) { + strncpy(tmp, user, MAILTMPLEN - 1); + pw = getpwnam(lcase(tmp)); + } /* no entry for this user or root */ /* if (!(pw && pw->pw_uid)) return NIL; */ if(!(spw = getspnam (pw->pw_name))) return NIL;