Mercurial > emacs
diff lib-src/pop.c @ 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 | 83946dc6f4e7 |
children | f1f7c254aa77 |
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; } }