summaryrefslogtreecommitdiff
path: root/lib-src/fakemail.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-04-19 00:17:46 +0000
committerRichard M. Stallman <rms@gnu.org>1994-04-19 00:17:46 +0000
commit1ddb69784baaf29d8a6c45c8c3be7446e7367aea (patch)
tree85db85f932acc9a26558bfaa31f18bbbab97ceb2 /lib-src/fakemail.c
parentd8ec2bc893a1238880823760835a4d5ecc085897 (diff)
downloademacs-1ddb69784baaf29d8a6c45c8c3be7446e7367aea.tar.gz
(readline): When extending the buffer,
calculate end afresh using the new size.
Diffstat (limited to 'lib-src/fakemail.c')
-rw-r--r--lib-src/fakemail.c2
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')