(echo_char): Use KEY_DESCRIPTION_SIZE to check free
memory for push_key_description.
This commit is contained in:
parent
b0ca4f56d5
commit
2d0ffc9aa8
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue