# HG changeset patch # User Richard M. Stallman # Date 766872260 0 # Node ID ed57331fb222ef8fe2b1d5e5d0a49056768038ba # Parent 72393aa69dd2b2eb95943938f0d7ccd2be8bc05e (readline): Fix updating of p when buffer grows. diff -r 72393aa69dd2 -r ed57331fb222 lib-src/fakemail.c --- a/lib-src/fakemail.c Wed Apr 20 19:56:46 1994 +0000 +++ b/lib-src/fakemail.c Wed Apr 20 20:04:20 1994 +0000 @@ -216,7 +216,7 @@ { linebuffer->size *= 2; buffer = ((char *) xrealloc (buffer, linebuffer->size)); - p += buffer - linebuffer->buffer; + p = buffer + (p - linebuffer->buffer); end = buffer + linebuffer->size; linebuffer->buffer = buffer; }