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:
parent
d8ec2bc893
commit
1ddb69784b
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user