From: Kenichi Handa Date: Thu, 18 Nov 1999 05:09:18 +0000 (+0000) Subject: (echo_char): Use KEY_DESCRIPTION_SIZE to check free X-Git-Tag: emacs-pretest-21.0.90~6070 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2d0ffc9aa8662ec6d931bcb0d755ceb36fc62020;p=emacs.git (echo_char): Use KEY_DESCRIPTION_SIZE to check free memory for push_key_description. --- diff --git a/src/keyboard.c b/src/keyboard.c index ab48077dc20..05efd6908d8 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -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);