diff options
| author | Andreas Schwab | 2011-09-19 23:15:47 +0200 |
|---|---|---|
| committer | Andreas Schwab | 2011-09-19 23:15:47 +0200 |
| commit | fa2ec41ffd2cace14f37f5d18d986b410cb038a1 (patch) | |
| tree | 4d8d53ab738a2caf696191176464297b41987808 /src/keymap.c | |
| parent | 3390454c621048dcd996f497aba5e807c49dcfaf (diff) | |
| download | emacs-fa2ec41ffd2cace14f37f5d18d986b410cb038a1.tar.gz emacs-fa2ec41ffd2cace14f37f5d18d986b410cb038a1.zip | |
* src/keymap.c (Fsingle_key_description): Use make_specified_string
instead of build_string to build string from push_key_description.
(Bug#5193)
Diffstat (limited to 'src/keymap.c')
| -rw-r--r-- | src/keymap.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/keymap.c b/src/keymap.c index dec53cbd8e1..218a2f1828f 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -2529,10 +2529,11 @@ around function keys and event symbols. */) | |||
| 2529 | 2529 | ||
| 2530 | if (INTEGERP (key)) /* Normal character */ | 2530 | if (INTEGERP (key)) /* Normal character */ |
| 2531 | { | 2531 | { |
| 2532 | char tem[KEY_DESCRIPTION_SIZE]; | 2532 | char tem[KEY_DESCRIPTION_SIZE], *p; |
| 2533 | 2533 | ||
| 2534 | *push_key_description (XUINT (key), tem, 1) = 0; | 2534 | p = push_key_description (XUINT (key), tem, 1); |
| 2535 | return build_string (tem); | 2535 | *p = 0; |
| 2536 | return make_specified_string (tem, -1, p - tem, 1); | ||
| 2536 | } | 2537 | } |
| 2537 | else if (SYMBOLP (key)) /* Function key or event-symbol */ | 2538 | else if (SYMBOLP (key)) /* Function key or event-symbol */ |
| 2538 | { | 2539 | { |