From: Ezra Peisach Date: Tue, 8 Aug 2000 17:40:29 +0000 (+0000) Subject: * krlogin.c (read_wrapper): Copy from the current point and not X-Git-Tag: krb5-1.3-alpha1~1929 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fe2e79a1686b7ea83c07b97477dd6ac72768a859;p=krb5.git * 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 --- 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 + + * krlogin.c (read_wrapper): Copy from the current point and not + the start of the cached buffer. + 2000-07-21 Peter S Litwack * 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; }