1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 04:10:54 -08:00

(getline): Don't miss CRLF pairs when the CR and LF are

read in separate blocks.
This commit is contained in:
Richard M. Stallman 1997-05-06 19:30:49 +00:00
parent 05c16cf82c
commit a8f44d07f9

View file

@ -1316,7 +1316,9 @@ getline (server)
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;
}
}