summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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')