Mercurial > emacs
diff src/keymap.c @ 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 | c3c9cc1c2379 |
| children | b89eb8bbaff1 |
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)
