summaryrefslogtreecommitdiffstats
path: root/src/windows/wintel
diff options
context:
space:
mode:
authorKeith Vetter <keithv@fusion.com>1995-04-19 00:12:57 +0000
committerKeith Vetter <keithv@fusion.com>1995-04-19 00:12:57 +0000
commitec07aeda23fd9d5fe64a93d3c543c3cc5847914a (patch)
tree87646eee1ea8b507610f8f8eb5b4344f75182c67 /src/windows/wintel
parentae6b4b701ebfa0660318c6205ccdfea6271456e9 (diff)
downloadkrb5-ec07aeda23fd9d5fe64a93d3c543c3cc5847914a.tar.gz
krb5-ec07aeda23fd9d5fe64a93d3c543c3cc5847914a.tar.xz
krb5-ec07aeda23fd9d5fe64a93d3c543c3cc5847914a.zip
Bug fix in the windows telnet program
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5372 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/windows/wintel')
-rw-r--r--src/windows/wintel/changelo4
-rw-r--r--src/windows/wintel/telnet.c5
2 files changed, 9 insertions, 0 deletions
diff --git a/src/windows/wintel/changelo b/src/windows/wintel/changelo
index d9a70ed9c9..2afd4f0550 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 4f13d2b15e..b69bca6fe8 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