diff options
-rw-r--r-- | src/windows/wintel/changelo | 4 | ||||
-rw-r--r-- | src/windows/wintel/telnet.c | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/windows/wintel/changelo b/src/windows/wintel/changelo index d9a70ed9c..2afd4f055 100644 --- a/src/windows/wintel/changelo +++ b/src/windows/wintel/changelo @@ -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 diff --git a/src/windows/wintel/telnet.c b/src/windows/wintel/telnet.c index 4f13d2b15..b69bca6fe 100644 --- a/src/windows/wintel/telnet.c +++ b/src/windows/wintel/telnet.c @@ -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 |