diff options
| author | Richard M. Stallman | 1997-05-06 19:30:49 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-05-06 19:30:49 +0000 |
| commit | a8f44d07f95b019f95977f0d8ed2edbefe2fc5e5 (patch) | |
| tree | 34772e5ddb64a0ff7fb1588993f6fbfd5e751ede /lib-src/pop.c | |
| parent | 05c16cf82c1905771f38f6930f2455fdebb9d1fb (diff) | |
| download | emacs-a8f44d07f95b019f95977f0d8ed2edbefe2fc5e5.tar.gz emacs-a8f44d07f95b019f95977f0d8ed2edbefe2fc5e5.zip | |
(getline): Don't miss CRLF pairs when the CR and LF are
read in separate blocks.
Diffstat (limited to 'lib-src/pop.c')
| -rw-r--r-- | lib-src/pop.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib-src/pop.c b/lib-src/pop.c index 9292998e288..48e9df7b5d5 100644 --- a/lib-src/pop.c +++ b/lib-src/pop.c | |||
| @@ -1316,7 +1316,9 @@ getline (server) | |||
| 1316 | fprintf (stderr, "<<< %s\n", server->buffer); | 1316 | fprintf (stderr, "<<< %s\n", server->buffer); |
| 1317 | return (server->buffer); | 1317 | return (server->buffer); |
| 1318 | } | 1318 | } |
| 1319 | search_offset += ret; | 1319 | /* As above, the "- 1" here is to account for the fact that |
| 1320 | we may have read a CR without its accompanying LF. */ | ||
| 1321 | search_offset += ret - 1; | ||
| 1320 | } | 1322 | } |
| 1321 | } | 1323 | } |
| 1322 | 1324 | ||