changeset 26480:229494ea30fa

(echo_char): Use KEY_DESCRIPTION_SIZE to check free memory for push_key_description.
author Kenichi Handa <handa@m17n.org>
date Thu, 18 Nov 1999 05:09:18 +0000
parents cf75e5b634ec
children 70d85ae6dfee
files src/keyboard.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/keyboard.c	Thu Nov 18 05:08:25 1999 +0000
+++ b/src/keyboard.c	Thu Nov 18 05:09:18 1999 +0000
@@ -678,7 +678,8 @@
 
       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);