Commit 2d0ffc9a authored by Kenichi Handa's avatar Kenichi Handa

(echo_char): Use KEY_DESCRIPTION_SIZE to check free

memory for push_key_description.
parent b0ca4f56
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment