1
0
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:
Kenichi Handa 1999-11-18 05:09:18 +00:00
parent b0ca4f56d5
commit 2d0ffc9aa8

View File

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