}
else {
safeStrCpy(buf, s+1, sizeof(buf)/sizeof(buf[0]) );
- *strchr(buf, '/') = 0;
+ { char *p; if(p = strchr(buf, '/')) *p = 0; }
pwd = getpwnam(buf);
if (!pwd)
{
/* read from stdin */
rl_callback_read_char();
-
- /* redisplay the current line, check special case for login and password */
+ /* redisplay the current line */
if(sending_ICS_password)
{
int i; char buf[MSG_SIZ];