1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-27 07:37:33 +00:00

(readline): When extending the buffer,

calculate end afresh using the new size.
This commit is contained in:
Richard M. Stallman 1994-04-19 00:17:46 +00:00
parent d8ec2bc893
commit 1ddb69784b

View File

@ -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')