Mercurial > emacs
changeset 6954:774fdc20d115
(readline): When extending the buffer,
calculate end afresh using the new size.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 19 Apr 1994 00:17:46 +0000 |
parents | cd88b5f54ae3 |
children | b44a0c16d7ad |
files | lib-src/fakemail.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lib-src/fakemail.c Mon Apr 18 23:53:51 1994 +0000 +++ b/lib-src/fakemail.c Tue Apr 19 00:17:46 1994 +0000 @@ -217,7 +217,7 @@ 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')