Commit f3309b68 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(readline): Fix updating of p when buffer grows.

parent c71ff001
......@@ -216,7 +216,7 @@ readline (linebuffer, stream)
{
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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment