Mercurial > emacs
changeset 17683:975d093d45fb
(getline): Don't miss CRLF pairs when the CR and LF are
read in separate blocks.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 06 May 1997 19:30:49 +0000 |
parents | 70a83005a2ca |
children | e486cbd2419d |
files | lib-src/pop.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lib-src/pop.c Tue May 06 13:59:36 1997 +0000 +++ b/lib-src/pop.c Tue May 06 19:30:49 1997 +0000 @@ -1316,7 +1316,9 @@ fprintf (stderr, "<<< %s\n", server->buffer); return (server->buffer); } - search_offset += ret; + /* As above, the "- 1" here is to account for the fact that + we may have read a CR without its accompanying LF. */ + search_offset += ret - 1; } }