HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
05c16cf
)
(getline): Don't miss CRLF pairs when the CR and LF are
author
Richard M. Stallman
<rms@gnu.org>
Tue, 6 May 1997 19:30:49 +0000
(19:30 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Tue, 6 May 1997 19:30:49 +0000
(19:30 +0000)
read in separate blocks.
lib-src/pop.c
patch
|
blob
|
blame
|
history
diff --git
a/lib-src/pop.c
b/lib-src/pop.c
index
9292998
..
48e9df7
100644
(file)
--- a/
lib-src/pop.c
+++ b/
lib-src/pop.c
@@
-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;
}
}