Revert "bugfix: fixed readline support with icslogon option"
[xboard.git] / xboard.c
index 2e8a773..e08a5f5 100644 (file)
--- a/xboard.c
+++ b/xboard.c
@@ -7621,7 +7621,7 @@ ExpandPathName(path)
        }
        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)
            {
@@ -8180,8 +8180,7 @@ DoInputCallback(closure, source, xid)
          
          /* 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];