summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>2000-08-08 17:40:29 +0000
committerEzra Peisach <epeisach@mit.edu>2000-08-08 17:40:29 +0000
commitfe2e79a1686b7ea83c07b97477dd6ac72768a859 (patch)
treebb0873afecf8244357b2f4e30b7ef86911c52b00 /src
parent349dfa6941b89df56f60c9193a8d175f5f98a99d (diff)
* krlogin.c (read_wrapper): Copy from the current point and not
the start of the cached buffer. This would only be observed when the client sent the cmdchar. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12611 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/appl/bsd/ChangeLog5
-rw-r--r--src/appl/bsd/krlogin.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog
index 4a1fdab64..1301646fa 100644
--- a/src/appl/bsd/ChangeLog
+++ b/src/appl/bsd/ChangeLog
@@ -1,3 +1,8 @@
+Tue Aug 8 13:38:22 2000 Ezra Peisach <epeisach@mit.edu>
+
+ * krlogin.c (read_wrapper): Copy from the current point and not
+ the start of the cached buffer.
+
2000-07-21 Peter S Litwack <plitwack@mit.edu>
* krlogin.c (writer): Improved bandwith efficiency by reading
diff --git a/src/appl/bsd/krlogin.c b/src/appl/bsd/krlogin.c
index d7ec552e9..b05f95599 100644
--- a/src/appl/bsd/krlogin.c
+++ b/src/appl/bsd/krlogin.c
@@ -1238,14 +1238,14 @@ int read_wrapper(fd,buf,size,got_esc)
bol = (c == defltc.t_suspc);
#endif
-#else / * !POSIX_TERMIOS * /
+#else /* !POSIX_TERMIOS */
bol = c == defkill || c == deftc.t_eofc ||
c == deftc.t_intrc || c == defltc.t_suspc ||
c == '\r' || c == '\n';
#endif
}
- memcpy(buf,tbuf, return_length);
+ memcpy(buf, data_start, return_length);
data_start = data_start + return_length;
return return_length;
}