diff options
| author | Kenichi Handa | 1999-11-18 05:10:13 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1999-11-18 05:10:13 +0000 |
| commit | d2d9586a77705a15da93d382c440dbc49096a3f6 (patch) | |
| tree | 3eb2c11f35fdf7c9ae195f96661da51c180d8a52 /src | |
| parent | 2d0ffc9aa8662ec6d931bcb0d755ceb36fc62020 (diff) | |
| download | emacs-d2d9586a77705a15da93d382c440dbc49096a3f6.tar.gz emacs-d2d9586a77705a15da93d382c440dbc49096a3f6.zip | |
(Fsingle_key_description): Use KEY_DESCRIPTION_SIZE to
allocate memory for push_key_description.
(describe_buffer_bindings): Likewise.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keymap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/keymap.c b/src/keymap.c index cad670455a1..5070fc1d1c8 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -1949,7 +1949,7 @@ Control characters turn into C-whatever, etc.") | |||
| 1949 | } | 1949 | } |
| 1950 | else | 1950 | else |
| 1951 | { | 1951 | { |
| 1952 | char tem[30]; | 1952 | char tem[KEY_DESCRIPTION_SIZE]; |
| 1953 | 1953 | ||
| 1954 | *push_key_description (XUINT (key), tem) = 0; | 1954 | *push_key_description (XUINT (key), tem) = 0; |
| 1955 | return build_string (tem); | 1955 | return build_string (tem); |
| @@ -2414,7 +2414,7 @@ You type Translation\n\ | |||
| 2414 | for (c = 0; c < translate_len; c++) | 2414 | for (c = 0; c < translate_len; c++) |
| 2415 | if (translate[c] != c) | 2415 | if (translate[c] != c) |
| 2416 | { | 2416 | { |
| 2417 | char buf[30]; | 2417 | char buf[KEY_DESCRIPTION_SIZE]; |
| 2418 | char *bufend; | 2418 | char *bufend; |
| 2419 | 2419 | ||
| 2420 | if (alternate_heading) | 2420 | if (alternate_heading) |