From: Keith Vetter Date: Wed, 19 Apr 1995 00:12:57 +0000 (+0000) Subject: Bug fix in the windows telnet program X-Git-Tag: krb5-1.0-beta5~364 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ec07aeda23fd9d5fe64a93d3c543c3cc5847914a;p=krb5.git Bug fix in the windows telnet program git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5372 dc483132-0cff-0310-8789-dd5450dbe970 --- 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