From ec07aeda23fd9d5fe64a93d3c543c3cc5847914a Mon Sep 17 00:00:00 2001 From: Keith Vetter Date: Wed, 19 Apr 1995 00:12:57 +0000 Subject: [PATCH] Bug fix in the windows telnet program git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5372 dc483132-0cff-0310-8789-dd5450dbe970 --- src/windows/wintel/changelo | 4 ++++ src/windows/wintel/telnet.c | 5 +++++ 2 files changed, 9 insertions(+) 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 -- 2.26.2