diff options
author | Richard M. Stallman <rms@gnu.org> | 1994-04-19 00:17:46 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1994-04-19 00:17:46 +0000 |
commit | e1ba276c8287b96432e73aff55c62c72dee604bf (patch) | |
tree | efcab2cdc7c45fbfc0a9d4d34ddf6949e54c4388 /lib-src | |
parent | b7e49b19acf3662068479a69b8951ff89e712928 (diff) | |
download | emacs-e1ba276c8287b96432e73aff55c62c72dee604bf.tar.gz |
(readline): When extending the buffer,
calculate end afresh using the new size.
Diffstat (limited to 'lib-src')
-rw-r--r-- | lib-src/fakemail.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib-src/fakemail.c b/lib-src/fakemail.c index 252a7b2ad5b..1e5bf53ed47 100644 --- a/lib-src/fakemail.c +++ b/lib-src/fakemail.c @@ -217,7 +217,7 @@ readline (linebuffer, stream) linebuffer->size *= 2; buffer = ((char *) xrealloc (buffer, linebuffer->size)); p += buffer - linebuffer->buffer; - end += buffer - linebuffer->buffer; + end = buffer + linebuffer->size; linebuffer->buffer = buffer; } if (c < 0 || c == '\n') |