mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-28 07:45:00 +00:00
(echo_char): Use KEY_DESCRIPTION_SIZE to check free
memory for push_key_description.
This commit is contained in:
parent
b0ca4f56d5
commit
2d0ffc9aa8
@ -678,7 +678,8 @@ echo_char (c)
|
||||
|
||||
if (INTEGERP (c))
|
||||
{
|
||||
if (ptr - current_kboard->echobuf > ECHOBUFSIZE - 6)
|
||||
if (ptr - current_kboard->echobuf
|
||||
> ECHOBUFSIZE - KEY_DESCRIPTION_SIZE)
|
||||
return;
|
||||
|
||||
ptr = push_key_description (XINT (c), ptr);
|
||||
|
Loading…
Reference in New Issue
Block a user