changeset 26481:70d85ae6dfee

(Fsingle_key_description): Use KEY_DESCRIPTION_SIZE to allocate memory for push_key_description. (describe_buffer_bindings): Likewise.
author Kenichi Handa <handa@m17n.org>
date Thu, 18 Nov 1999 05:10:13 +0000
parents 229494ea30fa
children 50e88d16e19f
files src/keymap.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/keymap.c	Thu Nov 18 05:09:18 1999 +0000
+++ b/src/keymap.c	Thu Nov 18 05:10:13 1999 +0000
@@ -1949,7 +1949,7 @@
 	}
       else
 	{
-	  char tem[30];
+	  char tem[KEY_DESCRIPTION_SIZE];
 
 	  *push_key_description (XUINT (key), tem) = 0;
 	  return build_string (tem);
@@ -2414,7 +2414,7 @@
       for (c = 0; c < translate_len; c++)
 	if (translate[c] != c)
 	  {
-	    char buf[30];
+	    char buf[KEY_DESCRIPTION_SIZE];
 	    char *bufend;
 
 	    if (alternate_heading)