Bug fix in the windows telnet program
authorKeith Vetter <keithv@fusion.com>
Wed, 19 Apr 1995 00:12:57 +0000 (00:12 +0000)
committerKeith Vetter <keithv@fusion.com>
Wed, 19 Apr 1995 00:12:57 +0000 (00:12 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5372 dc483132-0cff-0310-8789-dd5450dbe970

src/windows/wintel/changelo
src/windows/wintel/telnet.c

index d9a70ed9c9173cc8bbd670102078e724b1d8006a..2afd4f0550030f915d3a466603afed8b92b3f930 100644 (file)
@@ -1,3 +1,7 @@
+Tue Apr 18 17:11:56 1995 Keith Vetter (keithv@fusion.com)
+
+       * telnet.c: bug fix with saving/restoring delete versus backspace.
+
 Fri Apr 7 15:14:07 1995 Keith Vetter (keithv@fusion.com)
 
        * telnet.c, wt-proto.h: port numbers better supported. You can
index 4f13d2b15e176654ff694542c9234166b1fa630d..b69bca6fe82e3d00c95698350abab6ac35ee356f 100644 (file)
@@ -267,6 +267,10 @@ MainWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) {
                GetPrivateProfileString(INI_HOSTS, INI_HOST "0", "", buf, 128, 
             TELNET_INI);
                tmpCommaLoc = strchr(buf, ',');
+        if (tmpCommaLoc == NULL) {
+            strcat (buf, ",");
+            tmpCommaLoc = strchr(buf, ',');
+        }
                if (tmpCommaLoc) {
                        tmpCommaLoc++;
                        if (con->backspace == VK_BACK)
@@ -466,6 +470,7 @@ SaveHostName (char *host, int port)
     }
 
     if (comma) {
+        ++comma;                                // Past the comma
         while (*comma == ' ')                   // Past leading white space
             ++comma;
         bs = VK_BACK;                           // Default for unknown entry